Oracle 视图 ALL_NESTED_TABLE_COLS 官方解释,作用,如何使用详细说明
本站中文解释
显示主表中嵌套表的所有列的元数据
Oracle视图ALL_NESTED_TABLE_COLS允许查询主表中嵌套表的所有列的元数据。这可以帮助开发人员构建数据库应用程序,并帮助他们了解数据模型中每个嵌套表的结构。
ALL_NESTED_TABLE_COLS视图提供两个列:
TABLE_NAME:提供有关嵌套表的附加信息。
COLUMN_NAME:提供有关嵌套表列的附加信息。
要查询ALL_NESTED_TABLE_COLS视图,可以使用以下SELECT语句:
SELECT *
FROM ALL_NESTED_TABLE_COLS
WHERE TABLE_NAME=’table_name_here’;
这将显示拥有给定table_name_here表名称的所有嵌套表列的详细信息。
官方英文解释
ALL_NESTED_TABLE_COLS
describes the columns of the nested tables accessible to the current user. To gather statistics for this view, use the DBMS_STATS
package.
Related Views
-
DBA_NESTED_TABLE_COLS
describes the columns of all nested tables in the database. -
USER_NESTED_TABLE_COLS
describes the columns of the nested tables owned by the current user. This view does not display theOWNER
column.
Column | Datatype | NULL | Description |
---|---|---|---|
|
|
|
Owner of the nested table |
|
|
|
Name of the nested table |
|
|
|
Column name |
|
|
Data type of the column |
|
|
|
Data type modifier of the column |
|
|
|
Owner of the data type of the column |
|
|
|
|
Length of the column (in bytes) |
|
|
Decimal precision for |
|
|
|
Digits to the right of the decimal point in a number |
|
|
|
Indicates whether a column allows NULLs. The value is |
|
|
|
Sequence number of the column as created |
|
|
|
Length of the default value for the column |
|
|
|
Default value for the column |
|
|
|
Number of distinct values in the column. This column remains for backward compatibility with Oracle7. This information is now in the |
|
|
|
Low value in the column. This column remains for backward compatibility with Oracle7. This information is now in the |
|
|
|
High value in the column. This column remains for backward compatibility with Oracle7. This information is now in the |
|
|
|
If a histogram is available on If a histogram is not available on This column remains for backward compatibility with Oracle7. This information is now in the |
|
|
|
Number of NULLs in the column |
|
|
|
Number of buckets in the histogram for the column Note: The number of buckets in a histogram is specified in the |
|
|
|
Date on which this column was most recently analyzed |
|
|
|
Sample size used in analyzing this column |
|
|
|
Name of the character set:
|
|
|
|
Declaration length of the character type column |
|
|
|
|
|
|
|
Indicates whether statistics were entered directly by the user ( |
|
|
|
Average length of the column (in bytes) |
|
|
|
Displays the length of the column in characters. This value only applies to the following data types:
|
|
|
|
Indicates that the column uses
|
|
|
|
Indicates whether the column data is in release 8.0 image format ( |
|
|
|
Indicates whether the column data has been upgraded to the latest type version format ( |
|
|
|
Indicates whether the column is a hidden column ( |
|
|
|
Indicates whether the column is a virtual column ( |
|
|
|
Sequence number of the column in the segment |
|
|
|
|
Internal sequence number of the column |
|
|
Indicates existence/type of histogram:
|
|
|
|
Qualified column name |
See Also:
-
“DBA_NESTED_TABLE_COLS”
-
“USER_NESTED_TABLE_COLS”
-
Oracle Database PL/SQL
Packages and Types Reference for more information about theDBMS_STATS
package