Oracle query Table Comments and column comments

Source: Internet
Author: User

Oracle query Table Comments and column comments

[SQL] select t3.table _ name, t3.comments, t2.comments, t1.COLUMN _ NAME, t1.DATA _ TYPE | '(' | decode (t1.DATA _ TYPE ,'', t1.DATA _ PRECISION + t1.DATA _ SCALE, t1.data _ length) | ')' from user_tab_cols t1, user_col_comments t2, user_tab_comments t3 where t1.TABLE _ NAME = t2.table _ name (+) and t1.COLUMN _ NAME = t2.column _ name (+) and t1.TABLE _ NAME = t3.table _ name (+) and lower (t1.TABLE _ NAME) = 'user ';

 

Select distinct data_length from dba_tab_cols where data_type = 'number'

 

Result: 221230

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.