标签:sql clu diff date 时间 serve varchar arch ted
CAST ( CAST ( DATEDIFF ( ss, StartTime, ConcludeTime ) / ( 60 * 60 * 24 ) AS INT ) AS VARCHAR ) + ‘天‘ + CAST ( CAST ( DATEDIFF ( ss, StartTime, ConcludeTime ) % 86400 / 3600 AS INT ) AS VARCHAR ) + ‘小时‘ + CAST ( CAST ( DATEDIFF ( ss, StartTime, ConcludeTime ) % 3600 / 60 AS INT ) AS VARCHAR ) + ‘分‘ + CAST ( CAST ( DATEDIFF ( ss, StartTime, ConcludeTime ) % 60 AS INT ) AS VARCHAR ) + ‘秒‘ LengthOfTime
sql server 计算两个时间 相差的 几天几时几分几秒
标签:sql clu diff date 时间 serve varchar arch ted
原文地址:https://www.cnblogs.com/RambleLife/p/9831515.html