日期:2014-05-17 浏览次数:20724 次
SELECT CASE WHEN DATEDIFF(hh,GETDATE(),startTime)>24 THEN DATEDIFF(dd,GETDATE(),startTime) WHEN DATEDIFF(n,GETDATE(),startTime)>60 THEN DATEDIFF(hh,GETDATE(),startTime) WHEN DATEDIFF(s,GETDATE(),startTime)>60 THEN DATEDIFF(n,GETDATE(),startTime) END AS [显示时间] FROM Promotion