Count table rows

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

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

11条回答
  •  旧巷少年郎
    2020-11-28 22:48

    SELECT COUNT(*) FROM fooTable;
    

    will count the number of rows in the table.

    See the reference manual.

提交回复
热议问题