Today when creating a database I found to use select count(*) or save the count as a number are both available in this case.
So I’m wondering if there are some performance differences between them? How to choose?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Count(*) is most reliable becuase it gives correct count even when some rows are deleted from the table