how i can write the query ex;-
select count(id) where animal = rat , elephant ,cat, mouse
how i can do this in mysql.
ex means count the row where animal = rat ,elephant, cat ,mouse
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.
This will return a single
COUNTfor all matching animals:This will count animal-wise:
i. e. will return how many rats, elephants etc. are there in the table.