查询sql语句耗时的方法!时间:2023-03-09 04:26:28 declare @times datetimeset @times=getdate()--要查询的sql语句select [注册数花费时间(毫秒)]=datediff(ms,@times,getdate())