【发布时间】:2019-08-25 05:10:18
【问题描述】:
我已经看到其他答案,但我的问题不同,因为我想获得两个日期之间的差异并在 where 子句中使用它,但它要求我输入天数以获得差异。日期来自我的数据库。
Select datediff(D, cid, ced) as theDateDiff
from customers
Select datediff(D, cid, ced) as theDateDiff
from customers where theDateDiff>=5
【问题讨论】: