Skip to Main Content

Oracle Database Discussions

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Precision of Number is 0?

Leon Zeng-OracleSep 27 2008 — edited May 11 2010
I used the sample from from http://www.oracle.com/technology/sample_code/tech/java/codesnippet/jdbc/OracleResultSetMetaData.html) to fetch metadata of a table, and the result is:

Number of Columns in the table : 2

Column Name :SysIterID
Column Type :NUMBER
Column Scale :0
Column Precision :19
NULLABLE

Column Name :a
Column Type :NUMBER
Column Scale :0
Column Precision :0 (In SQL Developer it's NUMBER(10,0).)
NOT NULL

From docs, precision of NUMBER should be in range [1,38].
Is it normal to get a 0 precision?
On what condition a 0 presicion is expected?
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jun 8 2010
Added on Sep 27 2008
7 comments
3,711 views