查詢MySql數據庫架構信息:數據庫,表,表字段
/*1.查詢所有數據庫*/show databases;
/*2.查詢所有數據表*/
select * from information_schema.tables where table_schema='world'
/*3.查詢指定表的所有字段*/
select * from information_schema.columns
where table_schema='world'
and table_name='city'
最後更新:2017-04-03 15:21:43