得出SQL语句的执行时间的方法
2009-05-07 10:15
309 查看
1.定义时间
declare @d datetime
set @d=getdate()
2.要执行的sql语句
select * from protypeinfo
--select PT_ID,PT_Name,PT_Name_E,pt_parentid from protypeinfo
3.查看执行时间
---select [语句执行花费时间(毫秒)]=datediff(ms,@d,getdate())
select @d AS '开始时间', getdate() AS '结束时间' , datediff(ms,@d,getdate()) AS '执行时间's
declare @d datetime
set @d=getdate()
2.要执行的sql语句
select * from protypeinfo
--select PT_ID,PT_Name,PT_Name_E,pt_parentid from protypeinfo
3.查看执行时间
---select [语句执行花费时间(毫秒)]=datediff(ms,@d,getdate())
select @d AS '开始时间', getdate() AS '结束时间' , datediff(ms,@d,getdate()) AS '执行时间's
相关文章推荐
- 得出SQL语句的执行时间的方法
- 得出SQL语句的执行时间的方法
- 得出SQL语句的执行时间的方法
- 得出SQL语句的执行时间的方法
- 项目中调试SQLServer 方便的查看SQL语句的执行时间的方法
- 查看mysql sql 语句执行时间的两种方法
- 在SQLServer上查看SQL语句的执行时间的方法
- 查看django执行的sql语句及消耗时间的两种方法
- 项目中调试SQLServer 方便的查看SQL语句的执行时间的方法
- 计算SQL语句执行时间的方法
- 计算SQL语句执行时间的方法
- PHP获取MySQL执行sql语句的查询时间方法
- SQL 查看SQL语句的执行时间 直接有效的方法
- 项目中调试SQLServer 方便的查看SQL语句的执行时间的方法
- 在SQLServer上查看SQL语句的执行时间的方法
- sqlserver中获取执行sql语句时间的方法
- SQLServer上查看SQL语句的执行时间的方法
- 项目中调试SQLServer 方便的查看SQL语句的执行时间的方法
- 实现分析sql语句执行过程和编译时间的方法
- 查看sql语句执行时间