查询语句执行时间

来源:互联网 发布:如何买域名 编辑:程序博客网 时间:2024/05/16 17:07


declare @d datetime
set @d=getdate()

select * from [表]

select [语句执行花费时间(毫秒)]=datediff(ms,@d,getdate())  

 

就这样,我觉得很有用哦!测试你的查询语句