1
查询前两行
select * from users limit 2;
查询从第三条数据开始,查两条数据
select * from users limit 2,2;
2
按id反序查询,默认是从小到大的
select * from users order by id desc;
1
查询前两行
select * from users limit 2;
select * from users limit 2,2;
2
按id反序查询,默认是从小到大的
select * from users order by id desc;