ANALYZE INDEX [ownname.]indname [PARTITION partname] COMPUTE STATISTICS |
   ESTIMATE STATISTICS SAMPLE estimate_percent PERCENT;

解决方案 »

  1.   

    analyze table table_name estimate statistics sample 20 percent;
    analyze index index_name compute statistics;
      

  2.   

    analyze table table_name estimate statistics sample 20 percent;
    analyze index index_name compute statistics;
      

  3.   

    Analyze table tname compute statistics for all indexes
      

  4.   

    计算统计值和alter indexname rebuild有什么区别
      

  5.   

    alter indexname rebuild只是对失效索引的重建.