Qyouu
SELECT CAST(DATEDIFF(HH,'11:00:00','12:20:11') AS VARCHAR)+ ':' +CAST((DATEDIFF(MI,'11:00:00','12:20:11')%60) AS VARCHAR)+ ':' +CAST((DATEDIFF(SS,'11:00:00','12:20:11')%60) AS VARCHAR)
感谢沐枫提供的更简单的解决方案:
select convert(varchar, convert(datetime, datediff(SS, '11:00:00', '12:20:11')/convert(decimal,86400)), 8)