使用组合条件:
将组合列进行排序,根据组合列值设置上限,使用limit,进行分页查询;
SELECT title, author, isbn, description
FROM library
WHERE published_date > 2010
AND (title, author, isbn) > (?, ?, ?)
ORDER BY title, author, isbn
LIMIT 20
时间: 2024-11-18 04:41:21
使用组合条件:
将组合列进行排序,根据组合列值设置上限,使用limit,进行分页查询;
SELECT title, author, isbn, description
FROM library
WHERE published_date > 2010
AND (title, author, isbn) > (?, ?, ?)
ORDER BY title, author, isbn
LIMIT 20