Count how many tables are in a database in MySQL

 SELECT count(*) TABLES, table_schema FROM information_schema.TABLES   

where table_schema = 'fdss_datacenter_new_1' GROUP BY table_schema;  

 

where table_schema = database name

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=326643310&siteId=291194637