Hi
Does anyone know what is the precision of scale if we create a table with column number without specifying number(x,y)? Just use for exmaple
empno number,
cheers
Printable View
Hi
Does anyone know what is the precision of scale if we create a table with column number without specifying number(x,y)? Just use for exmaple
empno number,
cheers
Check out the NUMBER under the link:
http://technet.oracle.com/doc/oracle...ch23.htm#37627
Sam
NUMBER
is a floating-point number with decimal precision 38. Note that a scale value is not applicable for floating-point numbers. (See "Floating-Point Numbers" for more information.)
so I guess it´s number(38, 0)?
No, if it were number(38, 0) then anything right from the decimal point would be lost! When specifying datatype simply as NUMBER it means that the precision is limited by maximum allowable precision (38 digits), while scale is unconstrained, meaning you can use any scale for that precision. That's why it is said that scale is not applicable for floating point numbers.
HTH,