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.
我想循环(在 php 中)思想数据库以显示每个表的记录。
$retrun.=TableName." ".$RecordNumber
我知道如何计算一个特定的表,但我不知道如何循环。
感谢您的帮助
有一个简单的解决方案
SELECT table_name, table_rows FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_SCHEMA = '<your db>'
还有一个更简单的解决方案。
SELECT COUNT(*) FROM your_database WHERE (whatever)