当前位置: 移动技术网 > IT编程>数据库>MSSQL > 返回SQL执行时间的存储过程

返回SQL执行时间的存储过程

2017年12月12日  | 移动技术网IT编程  | 我要评论

彩虹乐队官网,新世纪娱乐19119存100送58,ip查地址

复制代码 代码如下:

use nbdxmis
create proc testtimeanysentence
@sql_where varchar(8000)
as
declare @ct datetime
set @ct = getdate()
declare @newsql_where varchar(8000)
set @newsql_where=@sql_where
exec(@newsql_where)
select datediff(ms, @ct ,getdate()) as '查询时间(毫秒)'
go
testtimeanysentence 'select * from 水费表 where 费用id<200000'

如对本文有疑问,请在下面进行留言讨论,广大热心网友会与你互动!! 点击进行留言回复

相关文章:

验证码:
移动技术网