Counting all rows
What is the command for counting all the rows in a table in MySQL?
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Satyapriya NayakRank #47 · 31.5K reputationPosted Dec 6, 2011, 6:17 PM EST
SELECT COUNT(*) FROM tablename
Thanks
Arjun PanwarRank #254 · 9.9K reputationPosted Dec 7, 2011, 1:41 AM EST
Thanks