select datediff(year, 開始日期,結束日期); --兩日期間隔年 select datediff(quarter, 開始日期,結束日期); --兩日期間隔季 select datediff(month, 開始日期,結束日期); --兩日期間隔月 select ...
select datediff(year, 開始日期,結束日期); --兩日期間隔年select datediff(quarter, 開始日期,結束日期); --兩日期間隔季select datediff(month, 開始日期,結束日期); --兩日期間隔月select datediff(day ...
select datediff(year, 開始日期,結束日期); --兩日期間隔年select datediff(quarter, 開始日期,結束日期); --兩日期間隔季select datediff(month, 開始日期,結束日期); --兩日期間隔月select datediff(day ...
1.日期相減得天數 結果:3 2.日期減天數等於日期 結果:2022/3/4 ...
...