1、获取某个数据库全部表的属性,如下名为‘api’的数据库
select *
from information_schema.tables
where table_schema = 'api';
结果
2、获取某个数据库全部表的结构(含列,等等),如下名为‘api’的数据库
select * from information_schema.`COLUMNS`
where table_schema = 'api';
1、获取某个数据库全部表的属性,如下名为‘api’的数据库
select *
from information_schema.tables
where table_schema = 'api';
结果
2、获取某个数据库全部表的结构(含列,等等),如下名为‘api’的数据库
select * from information_schema.`COLUMNS`
where table_schema = 'api';