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.
这是我的桌子:
course ------ courseId department number section title
我想做一个查询,它将对它们进行分层排序。按此顺序:
所以当我调用这个查询时......
SELECT * from `course` SORT BY ???
如何按多列排序?我用什么代替????
???
只需按顺序列出它们,用逗号分隔。此外,关键字是ORDER BY,而不是SORT BY:
ORDER BY
SORT BY
ORDER BY Department, Number, Section