`
380071587
  • 浏览: 449896 次
  • 性别: Icon_minigender_1
  • 来自: 上海
社区版块
存档分类
最新评论

查询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'
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics