Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个简单的查询来显示给定的用户照片:
SELECT pid FROM photo_tag WHERE subject in "12345" LIMIT 400,500
它返回 500 个结果......它不应该返回 100 吗?
否。您的查询要求从记录 401 开始的 500 条记录。
要返回记录 400-500,您的查询应为
SELECT pid FROM photo_tag WHERE subject in "12345" LIMIT 400, 100