MySQL Forums :: Performance :: count(*) or count(id)


Advanced Search

count(*) or count(id)
Posted by: Ra Nala ()
Date: June 28, 2016 06:22AM

Hi Sir,Madam,

Could you please finalize the answer regarding which correct one
count(*) or count(id)?

select count(*) from dummytable.

I gone through the web links and got final answer from below link but expecting accurate answer from forums experts. Kindly help me.

http://stackoverflow.com/questions/2710621/count-vs-count1-vs-countpk-which-is-better

Thanks,
ra na la

Options: ReplyQuote


Subject Views Written By Posted
count(*) or count(id) 647 Ra Nala 06/28/2016 06:22AM
Re: count(*) or count(id) 288 Ra Nala 06/28/2016 06:26AM
Re: count(*) or count(id) 276 Peter Brawley 06/28/2016 05:18PM
Re: count(*) or count(id) 302 Rick James 07/04/2016 01:04PM
Re: count(*) or count(id) 299 Ra Nala 07/06/2016 12:30AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.