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.
我有一个带有状态字段的表。如果状态是“完成”或“已删除”,我想始终将它们显示在列表的底部。
除此之外,我不关心状态,但想按创建日期排序。
我可以想象用 s sub select 来做,但我怎么能用一个查询来做呢?
ORDER BY status IN ('done','removed'), dateCreated