How can I get all the information about a table in Oracle?

后端 未结 3 1405
心在旅途
心在旅途 2021-01-23 20:17

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

相关标签:
3条回答
  • 2021-01-23 20:56

    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

    0 讨论(0)
  • 2021-01-23 21:02

    try the dbms_metadata package , you can find more info here

    0 讨论(0)
  • 2021-01-23 21:03

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

    Check this link

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

    0 讨论(0)
提交回复
热议问题