Possible Duplicate:
COUNT(id) vs. COUNT(*) in MySQL
Short but simple: in MySQL, would a SELECT COUNT(fld) AS count FROM tbl
be faster than SELECT COUNT(*) AS count FROM tbl
as I understand *
is the "all" selector in MySQL.
Does COUNT(*)
select all rows to compute a count, and therefore make a query like SELECT(id)
less expensive? Or does it not really matter?