How can I get all the information about a table, its columns and constraints etc in Oracle? I am using
desc MY_TABLE
but that's only giving me column name, nullness and type.
How can I get all the information about a table, its columns and constraints etc in Oracle? I am using
desc MY_TABLE
but that's only giving me column name, nullness and type.
Check this script : http://oracletipstricks.blogspot.com/2008/01/getting-table-details-with-sqlplus.html
Give details : - Column Details
PRIMARY KEY
INDEXES
FOREIGN KEYS
CONSTRAINTS
ROWCOUNT
Other Tables That REFER to this Table
PARTITIONED COLUMNS
PARTITIONS
TRIGGERS
DEPENDANTS
You can use system tables to get the information you are looking for.
Check this link