使用analyze命令收集统计信息

一、以计算模式收集表、表的全部列及表上的全部索引统计信息html

analyze table table_name compute statistics;网站

二、收集表的统计信息,而且以计算模式htm

analyze table table_name compute statistics for table;索引

三、以计算模式收集索引的统计信息get

analyze index index_name compute statistics;table

四、以计算模式对表的列收集统计信息ast

analyze table table_name compute statistics for table for columns col1,col2;im

四、删除表、表的全部列及表的全部索引的统计信息统计

analyze table table_name delete statistics;img

————————————————————————————————————

重庆思庄18年3月OCP认证培训周末班正在面授,欢迎联系试听!新的OCP周末班将于4月1日开课,火热报名中,名额有限,请提早预约!更多详情访问思庄网站咨询在线客服。

相关文章
相关标签/搜索