1.查看数据库ry-vue库所有表:
select * from information_schema.TABLES where table_schema = 'ry-vue'

2.查看数据库ry-vue库所有列:
select * from information_schema.COLUMNS where table_schema = 'ry-vue'

3.查看数据库ry-vue库所有索引:
select * from information_schema.STATISTICS where table_schema = 'ry-vue'

4.查看表占用空间大小
SELECT TABLE_NAME,DATA_LENGTH+INDEX_LENGTH,TABLE_ROWS,concat(round((DATA_LENGTH+INDEX_LENGTH)/1024/1024,2), 'MB') as data
FROM information_schema.tables WHERE TABLE_SCHEMA='ry-vue' ORDER BY DATA_LENGTH+INDEX_LENGTH desc;
5.查看表字段数
SELECT TABLE_NAME,count(TABLE_NAME) from information_schema.COLUMNS where TABLE_SCHEMA='ry-vue' GROUP BY TABLE_NAME order by count(TABLE_NAME) desc
6.#查看表记录数
SELECT TABLE_NAME,TABLE_ROWS from information_schema.tables where TABLE_SCHEMA='ry-vue' order by TABLE_ROWS desc