比如select * from table order by id desc这个是倒序,正序将DESC换成ASC就好OK了,不过select * from table order by id 默认是正序,所以ASC就不需要写了。
关键在于你的sql语句啊!比如select * from table order by id desc
为啥非要查询出来排序啊。在数据库中使用一楼和三楼的就很好啊