特牛生活网

sqlserver 两个日期相减_sqlserver两个日期相减-CSDN博客

网友收藏
DECLARE@ctimeASdatetime, @mtimeASdatetime;SELECT @ctime = GETDATE(), @mtime = '2020-4-20 00:00:00';DECLARE@DaysASint, @Hours AS int, @Minutes AS int, @Seconds AS int;SET @Seconds =DATEDI..._sqlserver两个日期相减