• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Ron McLeod
  • Jeanne Boyarsky
Sheriffs:
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
Bartenders:

Confused about the Number datatype

 
Ranch Hand
Posts: 31
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I have 2 tables and both having "PK" column.

In 1 table, PK is defined as NUMBER(38)
And in second table, PK is defined as only NUMBER.

What is difference in that?
 
Ranch Hand
Posts: 75
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
NUMBER(p)
is a fixed point number with precision p and scale 0.

NUMBER
is a floating point number with precision 38. Note that a scale
value is not applicable for floating point numbers.

Refer below link
http://www4.utc.fr/~nf17/DOCS/complement/sqlplus-ref/NUMBER-DATATYPE.html
 
Would you turn that thing down? I'm controlling a mind here! Look ... look at the tiny ad ...
Clean our rivers and oceans from home
https://www.kickstarter.com/projects/paulwheaton/willow-feeders
reply
    Bookmark Topic Watch Topic
  • New Topic