Oracle query field details

Source: Internet
Author: User

Oracle query field details

The SQL statement used to query the detailed information of a field in Oracle contains the table name, field name, type, length, whether it is null, column number, and field remarks.

SELECT USER_TAB_COLS.TABLE_NAME as table name,

USER_TAB_COLS.COLUMN_NAME as column name,

USER_TAB_COLS.DATA_TYPE as data type,

USER_TAB_COLS.DATA_LENGTH as length,

USER_TAB_COLS.NULLABLE as is empty,

USER_TAB_COLS.COLUMN_ID as column number,

User_col_comments.comments as remarks

FROM USER_TAB_COLS

Inner join user_col_comments on

User_col_comments.TABLE_NAME = USER_TAB_COLS.TABLE_NAME

And user_col_comments.COLUMN_NAME = USER_TAB_COLS.COLUMN_NAME

Where USER_TAB_COLS.Table_Name = 'table name'

Installing Oracle 12C in Linux-6-64

Install Oracle 11gR2 (x64) in CentOS 6.4)

Steps for installing Oracle 11gR2 in vmwarevm

Install Oracle 11g XE R2 In Debian

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.