RE: [PHP] paging methodology

From: Date: Wed, 05 May 2004 18:06:40 +0000
Subject: RE: [PHP] paging methodology
Groups: php.general 
Request: Send a blank email to php-general+get-185461@lists.php.net to get a copy of this message
Chris <mailto:listschris@leftbrained.org> on Wednesday, May 05, 2004 10:56 AM said: > If you're using MySQL 4+ you could use the SQL_CALC_FOUND_ROWS flag > in the select statement. > > It causes the query to count the number of rows it *would have* > returned if there had been no limit clause. do you know if that's any faster than doing a "SELECT COUNT(*) FROM table WHERE ..." ? chris.

« previous php.general (#185461) next »