On Sunday, September 7, 2003, at 12:33 PM, Pablo Fischer wrote:


Thanks!!!
El día Sunday 07 September 2003 7:59 a Bob Showalter mandó el siguiente
correo:
Pablo Fischer wrote:
Hello!

I have a questionto those lovers of DBI and Databases: which method
is faster to know the number of rows of a query:

$sth->rows

or

my query but with a COUNT(id) and retrieve the value with:

You should also be aware that the rows method does not always return the number of rows from a select (for example in the oracle oci libraries it will not always do this, since the size of the return set is not necessarily known when control is returned to you from execute()).


George


-- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to