MySQL 查询结果再反序

1、取数据库最后30个数据

select x,y from sin order by id desc limit 0,30;

 

2、将数据再反序,横坐标反转

select * from (select x,y from sin order by id desc limit 0,30) as sinxy
order by sinxy.x asc ;

 

 

posted @ 2022-05-28 20:00  华小电  阅读(240)  评论(0编辑  收藏  举报