使用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日開課,火熱報名中,名額有限,請提早預約!更多詳情訪問思莊網站諮詢在線客服。

相關文章
相關標籤/搜索