Skip to Main Content

SQL & PL/SQL

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!

how to retrieve information about columns of tables

910885Nov 16 2012 — edited Nov 16 2012
Hi,

I am trying to get information about the columns of tables in Oracle databases. In MySQL, show columns provides good deal of information.
But in Oracle, we do not have such equivalent call.
"describe" shows only the primary key.

But it does not show whether any column has unique constraint or an index.

I created a column in a table with unique constraint (but not a primary key), but it was not listed with CONSTRAINT_TYPE = 'U' in dba_constraints view, but was listed with CONSTRAINT_TYPE = 'C' - Check constraint.

Can someone pls guide how can we know this information about columns?

Thanks in advance for your time and guidance.

Best Regards.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Dec 14 2012
Added on Nov 16 2012
6 comments
512 views