0

例如,列的所有行的值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
4

1 回答 1

3

是的。

order by只需在子句中添加第二列

ORDER BY rating DESC, name DESC
于 2012-05-20T13:32:40.627 回答