查询sql语句耗时的方法!

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

原文地址:https://www.cnblogs.com/huicao/p/3831195.html