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!

Column data type length confusion

unknown-879931Mar 8 2014 — edited Mar 10 2014

Hello All,

In order to learn my column data type and length I run the following query. However, when I confirm it with desc table_name command, I see that data lengths are not match. Do you have any idea?

>>select column_name||' '||data_type||'('||data_length||')' col_info from all_tab_columns where table_name = 'CUSTTABLE' and column_name = 'ACCOUNTNUM';

>>ACCOUNTNUM NVARCHAR2(24)

>>desc CUSTTABLE;

>>ACCOUNTNUM 1  N NVARCHAR2 (12)

Regards

Charlie

This post has been answered by Solomon Yakobson on Mar 10 2014
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Apr 7 2014
Added on Mar 8 2014
10 comments
3,151 views