Считайте таблицу Indatabase

SELECT count(*) AS TOTALNUMBEROFTABLES FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_SCHEMA = 'tableName'

#tamilarasan nallairsun
Adorable Angelfish