mysql分頁查詢語句怎么寫
1 回答

吃雞游戲
TA貢獻(xiàn)1829條經(jīng)驗(yàn) 獲得超7個(gè)贊
--1.最常用的分頁
select * from content order by id desc limit 0, 10;
--limit是MySQL中特有的分頁語法,用法如下:
--舉例:
select * from tableName limit 5; --返回前5行
select * from tableName limit 0,5; --同上,返回前5行
select * from tableName limit 5,10; --返回6-15行
添加回答
舉報(bào)
0/150
提交
取消