Oracle 视图 ALL_UNUSED_COL_TABS 官方解释,作用,如何使用详细说明
本站中文解释
All_Unused_Col_tabs是一个视图,储存着表上尚未使用的列的信息,它包括列名、表名和表所属的用户名。
All_Unused_Col_tabs可以帮助我们有效更新表的结构,当表的某些列不再可用时,它可以帮助我们将这些列从表中整理出来。如果集体中某些列不再被使用,我们就可以使用ALL_UNUSED_COL_TABS来查看表上尚未被使用的列,这样可以节省内存空间,进而提高处理效率。
使用ALL_UNUSED_COL_TABS视图非常简单,只需要使用select语句从它中检索信息即可,一般形式如下:
SELECT * FROM ALL_UNUSED_COL_TABS
WHERE OWNER = ‘用户名’;
其中,用户名指的是要检索信息的表所属的用户名,可以从用户字典Cat_All_Tab读取。
官方英文解释
ALL_UNUSED_COL_TABS
describes the tables accessible to the current user that contain unused columns.
Related Views
-
DBA_UNUSED_COL_TABS
describes all tables in the database that contain unused columns. -
USER_UNUSED_COL_TABS
describes the tables owned by the current user that contain unused columns. This view does not display theOWNER
column.
Column | Datatype | NULL | Description |
---|---|---|---|
|
|
|
Owner of the table |
|
|
|
Name of the table |
|
|
Number of unused columns |
See Also:
-
“DBA_UNUSED_COL_TABS”
-
“USER_UNUSED_COL_TABS”