1. 首页
  2. 数据库
  3. 其它
  4. 返回SQL执行时间的存储过程

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

上传者: 2021-01-17 04:00:07上传 PDF文件 17KB 热度 22次
代码如下: 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
下载地址
用户评论