📌  相关文章
📜  如何在sql代码示例中按字母顺序对名称进行排序

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

代码示例2
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