您的位置:首页 > 博客中心 > 数据库 >

查看SQL语句在SQL Server上的执行时间

时间:2022-03-10 18:07

set statistics profile on
set statistics io on
set statistics time on
go
--begin <这里写上你的语句...>
 
select * from ...... 
 
--end <这里写上你的语句...>

set statistics profile off
set statistics io off
set statistics time OFF
go

 

--执行后查看【消息】,有很清楚的执行情况。

查看SQL语句在SQL Server上的执行时间,布布扣,bubuko.com

热门排行

今日推荐

热门手游