Oracle 查詢欄位詳細資料

來源:互聯網
上載者:User

Oracle 查詢欄位詳細資料

Oracle 中查詢欄位詳細資料的sql 語句,包含了表名,欄位名,類型,長度,是否為空白,列序號和欄位的備忘資訊。

SELECT USER_TAB_COLS.TABLE_NAME as 表名,

USER_TAB_COLS.COLUMN_NAME as 列名 ,

USER_TAB_COLS.DATA_TYPE as 資料類型,

USER_TAB_COLS.DATA_LENGTH as 長度,

USER_TAB_COLS.NULLABLE as 是否為空白,

USER_TAB_COLS.COLUMN_ID as 列序號,

user_col_comments.comments as 備忘

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='表名'

Linux-6-64下安裝Oracle 12C筆記

在CentOS 6.4下安裝Oracle 11gR2(x64)

Oracle 11gR2 在VMWare虛擬機器中安裝步驟

Debian 下 安裝 Oracle 11g XE R2

相關文章

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.