例如,列rating
的所有行的值均为零。 ORDER BY rating DESC
将是主要的,有没有办法进行辅助ORDER BY
。
如果ORDER BY rating DESC
有重复项,那么请ORDER BY name DESC
吗?这可能吗?
id | name | rating
1 | one | 0
2 | two | 0
3 | three | 0
4 | four | 0
5 | five | 0
6 | six | 0
答案 0 :(得分:3)
是
只需在order by
子句
ORDER BY rating DESC, name DESC