Jump to content

row count


chrischen

Recommended Posts

mysql_num_rows only returns the number of rows in the result set.

 

I assume you mean to SELECT * or SELECT colName  VS SELECT COUNT(*) or SELECT COUNT(colName) and simply gather the number of rows in the table.  Why not test it yourself?

 

Also, I advise to not use * if you are only after a total.

Link to comment
https://forums.phpfreaks.com/topic/139749-row-count/#findComment-731324
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.