lyaa 发表于 2022-7-26 17:56
dateGap 返回两个日期按照date_part比较的差值。
参考日期相关函数https://www.yonghongtech.com/help/Z-Su ...
叨叨叨 发表于 2022-7-26 17:59
能给个case嘛
linge 发表于 2022-7-26 18:16
cast( datediff(day,a,b) as nvarchar(20))+'天'+cast( datediff(hour,a,b) as nvarchar(20))+'时'+cast( d ...
欢迎光临 永洪社区 (https://club.yonghongtech.com/) | Powered by Discuz! X3.4 |