1. 查询数据库有哪些表
SHOW DATABASES;
2. 查询数据库中有多少张表
SELECT
count(*) TABLES,
table_schema
FROM
information_schema.TABLES
WHERE
table_schema = '数据库名'
GROUP BY
table_schema;
1. 查询数据库有哪些表
SHOW DATABASES;
2. 查询数据库中有多少张表
SELECT
count(*) TABLES,
table_schema
FROM
information_schema.TABLES
WHERE
table_schema = '数据库名'
GROUP BY
table_schema;