oracle怎樣查詢注釋

2022-10-09 19:03:06 字數 674 閱讀 3216

oracle查詢注釋的方法:1、利用「select * from user_tab_comments」語句查詢表注釋;2、利用「select * from user_col_comments」語句查詢字段注釋。

本教程操作環境:windows10系統、oracle 11g版、dell g3電腦。

獲取表注釋

user_tab_comments;表注釋

select * from user_tab_commentsuser_tab_comments:table_name,table_type,comments。

相應的還有dba_tab_comments,all_tab_comments,這兩個比user_tab_comments多了ower列。

獲取字段注釋

select * from user_col_comments

user_col_comments:table_name,column_name,comments相應的還有dba_col_comments,all_col_comments,這兩個比user_col_comments多了ower列。

user_col_comments;表字段注釋(列注釋)

user_col_comments檢視顯示已經為表中的列輸入的注釋。這些注釋通過comment命令新增到資料庫中。user_col_comments檢視包含3 列:

oracle怎樣查詢注釋oracle怎樣查詢注釋

oracle查詢注釋的方法 1 利用 select from user tab comments 語句查詢表注釋 2 利用 select from user col comments 語句查詢字段注釋。本教程操作環境 windows10系統 oracle 11g版 dell g3電腦。獲取表注釋 u...

Oracle 語句查詢注釋

oracle資料庫中可通過一下語句查詢資料庫表中的注釋,在一般情況下資料庫語句不區分大小寫,但再此查詢中存在表名區分大小寫!我們可以新建乙個表 product 可通過以下語句新增注釋,用於對日後工作的需要。comment on table product is comment on column p...

oracle中查詢表注釋和字段注釋

查詢表注釋 select from user tab comments a where a.table name 查詢字段注釋 查詢字段詳細資訊 select from all tab columns a where a.table name 查詢字段注釋 select from user col ...