declare @begintime datetime,@endtime datetime
set @begintime = getdate()你的查询set @endtime = getdate()
select datediff(millisecond,@begintime,@endtime) costtime
set @begintime = getdate()你的查询set @endtime = getdate()
select datediff(millisecond,@begintime,@endtime) costtime
解决方案 »
- 在用C#连接SQL 2005数据库时怎样用默认的Windows的用户名和密码连接
- 字符串替换问题
- 显示重复了N次以上,同时是在2天内重复的?
- update某记录的某字段,在触发器中,如何获取某条记录某字段更新前的值和更新后的值?
- 怎样可以得到EXEC mytore1的表
- 一个排序的问题,花了两天测试,不知是不是SQL 的BUG.(有点怪,也可能是有点难度)
- 集群系统装sql server2005 没有ssis服务的问题
- 哪位知道char型和varchar的区别
- 如何让SQLServer执行SQL时不写日志?
- 这种游戏你玩过吗!
- 请问: 我的电脑硬盘是40G,装上SQL Server2000后,SQL Server2000慢的要死,打开一个企业管理器好久才打开,好象在不断扫描硬盘?why?
- 关于存储图象文件的问题
用哪种方法不耗费时间?
我只是怀疑这样得到的精确度是不是真的“精确”。因为这样的计算本身耗用的时间可能也是要以毫秒计,对真实结果干扰太大,最后得到的结果可能是失真的。