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 中可能吗?如果是这样,查询是什么?
你可以试试这个 SQL 查询:
USE <database_name>; SELECT COUNT(*) FROM sys.tables;
在上面的命令中,将占位符替换为实际的数据库名称。