MySql 几种常见的排序方式
1、单列排序SELECT * FROM table_name ORDER BY column_name;默认升序,降序后面接"DESC"即可。2、多列排序SELECT * FROM table_name ORDER BY column_name1, column_name2 DESC;首先按column_name1字段排序,若column_name1相等,则按column_name2排序。3、自定义排序SELECT * FROM table_name