閱讀448 返回首頁    go 阿裏雲 go 技術社區[雲棲]


查詢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

  上一篇:go hdu 4707 Pet 水
  下一篇:go TDD測試驅動的javascript開發(3) ------ javascript的繼承