源码网商城,靠谱的源码在线交易网站 我的订单 购物车 帮助

源码网商城

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

  • 时间:2020-09-06 13:47 编辑: 来源: 阅读:
  • 扫一扫,手机访问
摘要:返回SQL执行时间的存储过程
[u]复制代码[/u] 代码如下:
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'
  • 全部评论(0)
联系客服
客服电话:
400-000-3129
微信版

扫一扫进微信版
返回顶部