📜  mysql 从底部偏移 - SQL 代码示例

📅  最后修改于: 2022-03-11 15:04:59.547000             🧑  作者: Mango

代码示例1
SELECT id FROM table ORDER BY id DESC LIMIT 5

If you like to select entries 10,9,[8,7,6,5,4],.. try (3 start index, 5 row count)

SELECT id FROM table ORDER BY id DESC LIMIT 3,5
Or 1,2,3,[4,5,6,7,8],9,10

SELECT id FROM table ORDER BY id ASC LIMIT 4,5