Oracle 视图 ALL_TAB_COL_STAT_MODELS 官方解释,作用,如何使用详细说明
本站中文解释
ALL_TAB_COL_STAT_MODELS视图提供表和列统计模型的列表。每条记录表示一个统计模型,它被赋予一个用户或系统生成的唯一的编号。
使用ALL_TAB_COL_STAT_MODELS视图可以获取属于某个特定模型的所有统计信息。语法如下:
SELECT * FROM ALL_TAB_COL_STAT_MODELS
WHERE MODEL IN (SELECT MODEL FROM [USER_|ALL_]TAB_COL_STAT_MODELS
WHERE MODEL_NAME='[MODEL_NAME]’);
此查询可以用来查询具体模型并生成统计信息。通常,可以使用MODEL_NAME参数确定此模型。它可以是模型的完全限定名称,也可以是模型的名称(例如:WW1)。
官方英文解释
ALL_TAB_COL_STAT_MODELS
describes real-time statistics models for all tables accessible to the current user.
Real-time statistics models use machine learning algorithms to predict the number of distinct values (NDV) for table columns.
Related Views
-
DBA_TAB_COL_STAT_MODELS
describes real-time statistics models for all tables in the database. -
USER_TAB_COL_STAT_MODELS
describes real-time statistics models for all tables owned by the current user. This view does not display theOWNER
column.
Column | Datatype | NULL | Description |
---|---|---|---|
|
|
|
Owner of the table |
|
|
|
Name of the table |
|
|
|
Name of the table column to which the model applies |
|
|
|
Statistics type The value of this column is always |
|
|
|
Name of the model |
|
|
|
Status of the model ( |
|
|
|
Time at which the model was created |
|
|
|
Time at which the model was most recently used |
Note:
This view is available starting with Oracle Database 21c.
See Also:
-
“DBA_TAB_COL_STAT_MODELS”
-
“USER_TAB_COL_STAT_MODELS”