踏实,努力向上!

得出SQL语句的执行时间的方法

上一篇 / 下一篇  2008-01-05 15:28:26 / 个人分类:SQL

得出SQL语句的执行时间的方法

select语句前加:
declare @d datetime
set @d=getdate()
并在select语句后加:
select [语句执行花费时间(毫秒)]=datediff(ms,@d,getdate())


TAG: SQL

 

评分:0

我来说两句

Open Toolbar