查看SQL查询数据所话费时间

来源:互联网 发布:直男癌语录 知乎 编辑:程序博客网 时间:2024/04/28 20:45

通过下面语句可以查看某查询语句查询数据所话费的时间


在select查询语句前加:
declare @d datetime
set @d=getdate()

并在selec查询t语句后加:

select [语句执行花费时间(毫秒)]=datediff(ms,@d,getdate())

原创粉丝点击