MySQL 8 Cookbook
上QQ阅读APP看书,第一时间看更新

Count

Find the count of employees from the employees table:

mysql> SELECT COUNT(*) FROM employees;
+----------+
| COUNT(*) |
+----------+
| 300024 |
+----------+
1 row in set (0.03 sec)