2012-04-10 162 views

回答

6

使用DATEDIFF功能documented here.

declare @start datetime = '2012-04-10 14:59:12.863',  
    @end datetime = '2012-04-10 14:59:13.800'  

select datediff(ms, @start, @end) 

的MS是毫秒的日期部分缩写。

+0

完美 - 谢谢! – 2012-04-10 16:03:05

+0

没问题 - 很高兴提供帮助。 – RThomas 2012-04-10 18:41:18

相关问题