📜  oracle 计算分区统计信息 - SQL 代码示例

📅  最后修改于: 2022-03-11 15:04:58.239000             🧑  作者: Mango

代码示例1
ANALYZE TABLE SCHEMA.MY_TABLE PARTITION (PARTITION_NAME) COMPUTE STATISTICS;

exec DBMS_STATS.GATHER_TABLE_STATS('MY_USER', 'MY_TABLE', ESTIMATE_PERCENT=>50, 
    GRANULARITY=>'PARTITION', PARTNAME=>'My_PARTITION_NAME', DEGREE => 8);