想鸟一样飞翔

专注于php开发。对c++也很有兴趣!!!

  博客园 :: 首页 :: 博问 :: 闪存 :: 新随笔 :: 联系 :: 订阅 订阅 :: 管理 ::
 
DECLARE @begin datetime
DECLARE @chaju bigint
DECLARE @end datetime
SET @begin=getdate()

要执行的sql语句......

SET @end=getdate()       
SELECT @chaju = datediff(Millisecond, @begin@end)
PRINT @chaju 
posted on 2007-10-17 13:19  redfox  阅读(475)  评论(0编辑  收藏  举报