Common commands for viewing table structures in Oracle

Source: Internet
Author: User


Common commands for Oracle to view table structures to obtain tables: www.2cto.com select table_name from user_tables; // select table_name from all_tables for the current user's table; // select table_name from dba_tables for all users; // including the system table select table_name from dba_tables where owner = 'username' user_tables: table_name, tablespace_name, role, and other dba_tables: ower, table_name, tablespace_name, role, and other all_tables: ower, tablespace_name, last_analyzed, and other all_objects: ower, object_name, subobject_name, object_id, created, encrypted, timestamp, status, and other table fields: Explain select * from user_tab_columns where Table_Name = 'user table '; select * from all_tab_columns where Table_Name = 'user table'; select * from region where Table_Name = 'user table'; user_tab_columns: table_name, column_name, data_type, data_length, data_precision, data_scale, nullable,
Column_id all_tab_columns: ower, table_name, column_name, data_type, data_length, data_precision, data_scale, nullable,
Column_id and other dba_tab_columns: ower, table_name, column_name, data_type, data_length, data_precision, data_scale, nullable,
Column_id and so on to obtain Table comments: www.2cto.com select * from user_tab_comments: table_name, table_type, comments -- corresponding to dba_tab_comments, all_tab_comments, these two are compared
The ower column is added. Obtain field comments: select * from user_col_comments: table_name, column_name, comments

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.