Phoenix Tips (10) 分页查询

组合使用order  by,   > ,   LIMIT   :

SELECT title, author, isbn, description 
FROM library 
WHERE published_date > 2010
AND (title, author, isbn) > (?, ?, ?)
ORDER BY title, author, isbn
LIMIT 20
原文地址:https://www.cnblogs.com/leeeee/p/7276367.html