SELECT COUNT(*) FROM information_schema.tables WHERE table_schema = 'dbName';
문제
How to count number of tables in a database ?
SELECT COUNT *
FROM SHOW TABLES AS A
해결책 2
다른 팁
SELECT COUNT(*) FROM information_schema.tables WHERE table_schema = 'dbName';
This one is easy
USE databasename; SHOW TABLES; SELECT FOUND_ROWS();
제휴하지 않습니다 StackOverflow