Results 1 to 5 of 5

Thread: Is this right?

  1. #1
    Join Date
    Apr 2004
    Location
    USA
    Posts
    28

    Unanswered: Is this right?

    Guys! Is this correct pl/sql scripts? it should be NUMBER(4,2), isn't it?

    DECLARE
    xyz NUMBER(2,2) := 31.8;
    ___________
    GorkhaliOCA
    USA

  2. #2
    Join Date
    Feb 2004
    Posts
    108
    does it gives any errors ?

  3. #3
    Join Date
    Apr 2004
    Location
    USA
    Posts
    28
    I haven't run the code yet. I am out of my home now I will run it tonight but can u tell me is it correct by logic?
    ___________
    GorkhaliOCA
    USA

  4. #4
    Join Date
    Apr 2003
    Location
    NY
    Posts
    208

    Re: Is this right?

    It should be Number(4,2). Otherwise you will get a precision error

  5. #5
    Join Date
    Apr 2004
    Location
    USA
    Posts
    28

    Re: Is this right?

    Thanks I agree with u, I got that code from a book while I was reading which I thought an incorrect statement. May be print mistake.

    thanks!
    ___________
    GorkhaliOCA
    USA

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •