Oracle 视图 ALL_TAB_COMMENTS 官方解释,作用,如何使用详细说明
本站中文解释
All_Tab_Comments视图可以获取表、索引和视图的注释信息,仅对拥有COMMENT ON表、索引或视图权限的用户可用。
All_Tab_Comments的结构如下:
OWNER 对象的拥有者
TABLE_NAME 对象的名称
COMMENTS 对象的注释信息
使用方法:
SELECT owner, table_name, comments
FROM all_tab_comments
WHERE table_name = ‘Table_Name’;
这句 SQL 语句将返回指定表的拥有者、名称和注释,例如:OWNER,TABLE_NAME和COMMENTS。
官方英文解释
ALL_TAB_COMMENTS
displays comments on the tables and views accessible to the current user.
Related Views
DBA_TAB_COMMENTS
displays comments on all tables and views in the database.USER_TAB_COMMENTS
displays comments on the tables and views owned by the current user. This view does not display theOWNER
column.
Column | Datatype | NULL | Description |
---|---|---|---|
|
|
| Owner of the object |
|
|
| Name of the object |
|
| Type of the object | |
|
| Comment on the object | |
|
| The ID of the container where the data originates. Possible values include:
|
See Also:
“DBA_TAB_COMMENTS”
“USER_TAB_COMMENTS”
编辑:广州明生医药有限公司
标签:视图,注释,对象,索引,名称