我有Posts表,其中包含两个属性“last_comment”和“created”,我保存了unix时间戳日期,我想按创建日期和last_comment Descending排序。
答案 0 :(得分:1)
select * from table order by last_comment desc, created
答案 1 :(得分:0)
select * from table
order by created, last_comment desc
答案 2 :(得分:0)
以下是如何在MySql中对行进行排序
答案 3 :(得分:0)
SELECT *
FROM table
ORDER BY created DESC, last_comment DESC