View User table and table field information in Oracle

Source: Internet
Author: User

1. view the table created by the user (Table Name and comment)

  1. -- View the table name
  2. Select*FromUser_tab_commentsWhereTable_nameLike 'Tb _ %';

If:

2. view the table name, column name, and field type information.

  1. SelectCol. COLUMN_NAMEAsColumn name, col. NULLABLEAs ISNull,
  2. Col. DATA_TYPE, col. DATA_LENGTH, col. DATA_PRECISION, col. DATA_SCALE, comm. COMMENTS
  3. FromUser_tab_comments tabInner JoinUser_tab_columns colOnTab. TABLE_NAME = col. TABLE_NAME
  4. Inner JoinUser_col_comments commOnCol. TABLE_NAME = comm. TABLE_NAMEAndCol. COLUMN_NAME = comm. COLUMN_NAME
  5. WhereCol. TABLE_NAME ='Tp _ PC_BFEXMPLAN'
  6. Order ByCol. COLUMN_IDAsc;

The result is as follows:

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.