本站中文解释
Oracle视图DBA_NESTED_TABLE_COLS存储表中的嵌套表的元数据信息。它存储每个嵌套表列的名称、列ID、表ID、列数据类型和字节数等信息。
可以通过 DBA_NESTED_TABLE_COLS 视图来查询某表中的每一列的信息,例如:
SELECT OWNER, TABLE_NAME, COLUMN_NAME, COLUMN_ID, DATA_TYPE, DATA_LENGTH
FROM DBA_NESTED_TABLE_COLS
WHERE OWNER = ‘xxx’
AND TABLE_NAME = ‘yyy’;
上述查询语句中,OWNER 和 TABLE_NAME 用来指定想要查询到元数据信息的表;COLUMN_NAME、COLUMN_ID、DATA_TYPE、DATA_LENGTH 用来查询指定表中每一列的名称、列ID、列数据类型和字节数等元数据信息。
官方英文解释
DBA_NESTED_TABLE_COLS
describes the columns of all nested tables in the database. Its columns are the same as those in ALL_NESTED_TABLE_COLS
.
To gather statistics for this view, use the DBMS_STATS
package.
See Also:
“ALL_NESTED_TABLE_COLS”