asc 按升序排列 (不用写,默认使用这个)
desc 按降序排列

例:

select * from yourtable where 查询条件 order by id desc limit 0,10;
按id倒序排列,且取前10条。

更多推荐

sql语句查询正序/倒序