Statements used to capture table structures in Oracle and statements captured in oracle

Source: Internet
Author: User

Statements used to capture table structures in Oracle and statements captured in oracle
Oracle --------------------------------------- SELECT case when t. COLUMN_ID = 1 then t. table_name end table_name, case when t. COLUMN_ID = 1 then t2.comments end table_comments, t. COLUMN_ID, t. colUMN_NAME, t1.comments, case when t3.COLUMN _ NAME is not null then 'y' else NULL end primary_key, t. DATA_TYPE, t. DATA_LENGTH, t. DATA_PRECISION, t. data_scale, t. nullable FROM User_Tab_Cols t, User_Col_Comments t1, User_Tab_Comments t2, user_cons_columns t3WHERE t. table_name = t1.table _ name AND t. column_name = t1.column _ name and t. table_name = t2.table _ name and t. table_name = t3.table _ name (+) and t. COLUMN_NAME = t3.COLUMN _ NAME (+) and t3.position (+)> 0 and t. TABLE_NAME ='s _ SALARY 'order by t. COLUMN_ID

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.