显示MSSQL SQL语句执行的时间

declare @d datetime
set @d=getdate()
select top 10 * from   love_larchives
select datediff(ms,@d,getdate())

原文地址:https://www.cnblogs.com/mqingqing123/p/1690801.html