Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何在 MySQL 中创建计数记录?
如果您需要计算 MySQL 中的行数,您只需使用COUNT(*). 在这里查看官方文档。
COUNT(*)
查询看起来像这样。
SELECT COUNT(*) FROM your_table;