select 7 rows from MySQL, except last 7, 14, …, N*7 rows

后端 未结 0 1313
迷失自我
迷失自我 2021-01-21 09:45

As far as I know to select last 7 rows from MySQL table in backward order, it needs to be done:

SELECT * FROM `table`
ORDER BY id DESC
LIMIT 7;

B

相关标签:
回答
  • 消灭零回复
提交回复
热议问题