2019-09-29 SQL语句‘order by’ 后面直接加
2019-09-29 本文已影响0人
忆丶往
① select * from table order by n
n 表示select里面的第n个字段
② 多个字段排序
SELECT DISTINCT * FROM table ORDER BY '1' DESC,'2' ASC
① select * from table order by n
n 表示select里面的第n个字段
② 多个字段排序
SELECT DISTINCT * FROM table ORDER BY '1' DESC,'2' ASC