Sql Server 常用计算时间方法

1、计算相差天数:select datediff( dd,'2012-01-09 23:59:59'  ,getdate())

原文地址:https://www.cnblogs.com/studyshine/p/2318076.html