SELECT COUNT(*) FROM information_schema.tables WHERE table_schema = 'dbName';
Frage
How to count number of tables in a database ?
SELECT COUNT *
FROM SHOW TABLES AS A
Lösung 2
Andere Tipps
SELECT COUNT(*) FROM information_schema.tables WHERE table_schema = 'dbName';
This one is easy
USE databasename; SHOW TABLES; SELECT FOUND_ROWS();
Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow