I have table about 1,000,000 rows. this query work well:
SELECT * FROM `articles`
WHERE `articles`.`hash` NOT
IN (
'1z8y'
)
LIMIT 2000,10
But this query return zero rows:
SELECT * FROM `articles`
WHERE `articles`.`hash` NOT
IN (
'1z8y'
)
LIMIT 800000,10
What's my problem? Any configure or etc?
Best Answer
Table have
1,000,000
records but It look like Table doesn't have800000+
records whereBut table have
2000+
records whereLIMIT
800000,10
will return10 records
after800000
th records but it looks like you didn't have800000 records
which satisfy your where clause condition.You can find no. of records which satisfy your where clause using this query