in reply to Perl and MySQL: Get number of rows affected
then you can run this query afterward to get the count without actually accessing the tables again:SELECT SQL_CALC_FOUND_ROWS value FROM table WHERE distinguishing_value + = ?
This is documented here.SELECT FOUND_ROWS()
|
|---|