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.
如何按最新订购 DateTime?
例子:
WHERE last_read BETWEEN @StartDate AND @EndDate ORDER BY
我是 sql 查询的新手,无法真正理解在线解释。抱歉和感谢
您按 column_name 排序,然后将 DESC 添加到按最后到第一个的顺序,所以在您的情况下(假设日期在 last_read 中)
ORDER BY last_read DESC