Get SQL run time
2016-03-22 16:17
375 查看
Here are some ways to get our sql run time
This way will more comprehensive
2.
Here we can refer to DATEDIFF
Let use it in our actual work jobs~~
This way will more comprehensive
set statistics profile on set statistics io on set statistics time on go ......--your sqls go set statistics profile off
2.
declare @begin_date datetime declare @end_date datetime select @begin_date = getdate() --also can use [set] ......--your sqls select @end_date = getdate() --also can use [set] select datediff(ms,@begin_date,@end_date) as 'time'
Here we can refer to DATEDIFF
Let use it in our actual work jobs~~
相关文章推荐
- HOSt ip is not allowed to connect to this MySql server
- mysql使用技巧(更新中)
- SQLite性能和限制 多进程
- JDBC连接数据库
- sql 将结果集反系列化为json
- 找工作——数据库
- Mybatis源码概览(一)
- Hibernate防止SQL注入攻击的方法
- GROUP BY,WHERE,HAVING之间的区别和用法
- Android App使用SQLite数据库的一些要点总结
- sql 将结果集系列化为json
- 关于oracle数据库(5)增删改查
- ORACLE ADF11g:VO代码式增删改
- SQLite 相关
- 数据库水平切分的实现原理解析——分库,分表,主从,集群,负载均衡器
- Mac OS X 下 TAR.GZ 方式安装 MySQL 5.7(转)
- 数据库——系统模式
- 详细了解SQLITE 优缺点 性能测试
- 数据库——数据模型
- 数据存储——SQLite