You may have a LIMIT qualifier available:
$sth = $dbh->prepare("select COLUMN_1 from table where COLUMN_2 < ? LIMIT ?, ?")I threw in a placeholder for the upper bound just for flexibility's sake. The first argument to LIMIT is the offset, the second, the number of rows to grab.
After Compline,
Zaxo
In reply to Re: Big database queries
by Zaxo
in thread Big database queries
by ezekiel
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |