Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个表产品(prodID,stock,createdDate 类型 DATETIME )
想从表中查找当前日期的所有记录
谢谢
这四舍五入到当前日期:
... WHERE createdDate >= dateadd(dd, datediff(dd, 0, GetDate()), 0)
GetDate
datediff(dd, 0, GetDate()), 0)
dateadd(dd