analyze table table_name compute statistics;
2、收集表的统计信息,并且以计算模式
analyze table table_name compute statistics for table;
3、以计算模式收集索引的统计信息
analyze index index_name compute statistics;
4、以计算模式对表的列收集统计信息
analyze table table_name compute statistics for table for columns col1,col2;
4、删除表、表的所有列及表的所有索引的统计信息
analyze table table_name delete statistics;
————————————————————————————————————
重庆思庄18年3月OCP认证培训周末班正在面授,欢迎联系试听!新的OCP周末班将于4月1日开课,火热报名中,名额有限,请提前预定!更多详情访问思庄网站咨询在线客服。