我只想知道如何在flash
列中的 10 行之后调用。我想打电话给所有category = today
。可能吗?
例如
SELECT * FROM news WHERE category='today' AND flash='true' limit 60
Is this what you're looking for (it's an official solution shown in the MySQL SELECT Syntax)?
SELECT * FROM news
WHERE flash='true'
LIMIT 10, 18446744073709551615;
Update:
After reading your comments, maybe this is what you're looking for:
SELECT *
FROM (SELECT *
FROM `news`
WHERE (`flash` = 'true')
LIMIT 10, 18446744073709551615) `after_flash`
WHERE `after_flash`.`category` = 'today';
您的意思是从位置 11-70 获取 60 条记录?
SELECT * FROM news WHERE category='today' AND flash='true' limit 10,60
您可能还需要执行 ORDER BY 子句来对数据进行排序。