当前位置:Gxlcms > 数据库问题 > MySQL分页查询

MySQL分页查询

时间:2021-07-01 10:21:17 帮助过:44人阅读

分页查询

语法:
select 查询列表

from 表

join type  join 表

on 连接条件

where  筛选条件

group by 分组字段

having 分组后的筛选

order by 排序的字段

limit offset,size



offset 要显示的起始索引(从0开始)

size 条数



offset=(page-1)*size

MySQL分页查询

标签:字段   rom   开始   mys   mysql分页   order by   查询   off   mysql   

人气教程排行