首页 > 技术文章 > SQL常用性能统计语句

chengeng 2016-09-27 11:00 原文

1.查看SQL语句IO消耗

set statistics io on 
    sql 语句 
set statistics io off

 

 

2.查看SQL语句时间消耗

 

set statistics time on 
     sql 语句
set statistics time off

 

 

3.查看SQL语句索引消耗

 

set statistics profile on 
       sql 语句 
set statistics profile off

 

推荐阅读