-1

我只想知道如何在flash列中的 10 行之后调用。我想打电话给所有category = today。可能吗?

例如

SELECT * FROM news WHERE category='today' AND flash='true' limit 60
4

2 回答 2

1

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';
于 2013-08-24T07:27:41.863 回答
0

您的意思是从位置 11-70 获取 60 条记录?

SELECT * FROM news WHERE category='today' AND flash='true' limit 10,60

您可能还需要执行 ORDER BY 子句来对数据进行排序。

于 2013-08-24T07:42:53.847 回答