count number of tables in database mysql code example
Example 1: count of tables in database mysql
SELECT count(*)
FROM INFORMATION_SCHEMA.TABLES
WHERE TABLE_SCHEMA = 'database_name'
Example 2: display total number of tables in mysql
SELECT count(*) AS TOTALNUMBEROFTABLES
-> FROM INFORMATION_SCHEMA.TABLES
-> WHERE TABLE_SCHEMA = 'SCHEMA_HERE';