呆呆資訊人
2014年10月28日 星期二
SQL持續時間
SET @StartTime=getdate()
WAITFOR DELAY '00:00:03'
SET @Duration=DATEDIFF(ss,@StartTime,getdate())
SELECT @hh=FLOOR(@Duration/60.0/60.0) % 60
SELECT @mm=FLOOR(@Duration/60.0) % 60
SELECT @ss=@Duration % 60
沒有留言:
張貼留言
較新的文章
較舊的文章
首頁
訂閱:
張貼留言 (Atom)
沒有留言:
張貼留言