多应用+插件架构,代码干净,二开方便,首家独创一键云编译技术,文档视频完善,免费商用码云13.8K 广告
数据抽出选项 === ## 知识点 - order by - limit - offset ## 实战 ``` > select * from users order by score asc; > select * from users order by score desc; > select * from users order by team; > select * from users order by team,score; > select * from users order by team desc,score desc; > select * from users order by score desc limit 3 offset 1; ``` ## 分页算法: ``` sql:`select * from tab_name limit 3 offset (1-1)*3`偏移数:计算 (page - 1) \* limit ```