📜  mysql 按两列优先级排序 - SQL 代码示例

📅  最后修改于: 2022-03-11 15:04:50.729000             🧑  作者: Mango

代码示例1
SELECT * FROM table_name ORDER BY col1 ASC;                -- ASCending is default
SELECT * FROM table_name ORDER BY col1 DESC;            -- DESCending
SELECT * FROM table_name ORDER BY col1 DESC, col2;        -- col1 DESC then col2 ASC