tags:

views:

61

answers:

4

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.

+1  A: 

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

Pranay Rana
+1  A: 

You can use system tables to get the information you are looking for.

Check this link

http://techonthenet.com/oracle/sys_tables/index.php

Prakash Kalakoti
+2  A: 

try the dbms_metadata package , you can find more info here

mcha
A: 

Use SQL Developer.

Janek Bogucki