What is the command for counting all the rows in a table in MySQL?

Questions by StephenRaj   answers by StephenRaj

Showing Answers 1 - 16 of 16 Answers

shilpak10

  • May 2nd, 2007
 

Select count(*) from table_name

Hi,

Select count(COLUMN_NAME) from information_schema.columns where table_name='table_name';

In above query please put your table name in place of 'table_name'


If you need any further assistance or discussion please mail me at altafhsayyed@yahoo.com

Thanks and regards

  Was this answer useful?  Yes

Anupam Kumar

  • Jan 7th, 2018
 

SELECT COUNT(*) FROM table_name;

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions