sqlserver 时间间隔
select top 10000
datediff(ss, startdate, finishdate) / (3600 * 24) as 天,
datediff(ss, startdate, finishdate) / 3600 % 24 as 小时,
datediff(ss, startdate, finishdate) / 60 % 60 as 分,
datediff(ss, startdate, finishdate) % 60 as 秒 from test1
datediff(ss, startdate, finishdate) / (3600 * 24) as 天,
datediff(ss, startdate, finishdate) / 3600 % 24 as 小时,
datediff(ss, startdate, finishdate) / 60 % 60 as 分,
datediff(ss, startdate, finishdate) % 60 as 秒 from test1
走向地狱的途中,不小心走了程序员这条路,路上一个个黑心的老板,和暗无天日的加班,我才发现,通往地狱的路径中,我们这行是最短的。