> 网游 > 综合热点
使用analyze命令收集统计信息
2018-08-13 00:59:21 作者:佚名
请注意:本文为编辑制作专题转载的资讯,页面显示的时间仅为生成静态页面时间而非具体内容事件发生的时间,由此给您带来的不便敬请谅解!

1、以计算模式收集表、表的所有列及表上的所有索引的统计信息

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;


相关文章

234游戏网站地图
子站导航

大家都在搜