Oracle 视图 ALL_PART_KEY_COLUMNS 官方解释,作用,如何使用详细说明
本站中文解释
ALL_PART_KEY_COLUMNS是一个Oracle视图,它显示了表及其分区对应的分区关键字段的定义信息。它可以用来检索正在使用的某些字段用作分区关键字,以及每个分区的相应位置。它还显示了表的每个分区列的名称、位置(列编号)、数据类型、长度、精度和小数位数。
要使用ALL_PART_KEY_COLUMNS视图,必须先用SELECT语句来选择要查询的表名称。查询可以用通配符来指定查询条件,查询结果将会返回该表及其分区的分区关键字段的定义信息。例如,下面的查询将会返回指定表(example_table)及其分区的分区关键字段的定义信息:
SELECT * FROM ALL_PART_KEY_COLUMNS
WHERE TABLE_NAME = ‘EXAMPLE_TABLE’;
官方英文解释
ALL_PART_KEY_COLUMNS
describes the partitioning key columns for the partitioned objects accessible to the current user.
Related Views
DBA_PART_KEY_COLUMNS
describes the partitioning key columns for all partitioned objects in the database.USER_PART_KEY_COLUMNS
describes the partitioning key columns for the partitioned objects owned by the current user. This view does not display theOWNER
column.
Column | Datatype | NULL | Description |
---|---|---|---|
|
| Owner of the partitioned table or index | |
|
| Name of the partitioned table or index | |
|
| Object type:
| |
|
| Name of the column | |
|
| Position of the column within the partitioning key | |
|
| Internal sequence number of the column for which this column provides linguistic ordering |
See Also:
“DBA_PART_KEY_COLUMNS”
“USER_PART_KEY_COLUMNS”
编辑:广州鸿名健康科技有限公司
标签:分区,字段,将会,定义,关键