Count table rows

后端 未结 11 2046
一个人的身影
一个人的身影 2020-11-28 21:55

What is the MySQL command to retrieve the count of records in a table?

11条回答
  •  盖世英雄少女心
    2020-11-28 23:00

    You have to use count() returns the number of rows that matches a specified criteria

    select count(*) from table_name;
    

提交回复
热议问题