查询sql语句耗时的方法!


declare @times datetime
set @times=getdate()
--要查询的sql语句
select [注册数花费时间(毫秒)]=datediff(ms,@times,getdate())