What is the most efficient way to find the record count of a large table?
Here are the two way's i've did it, would just like opinions on which one is better and more efficient. I'm coding PHP which shouldn't make a difference I'm just wondering about the SQL syntax.
Code:
select count(*) as myCount from myTable
or
Code:
select * from myTable
in the above after selecting all I use the mysql_num_rows function.
Randy