码迷,mamicode.com
首页 > 数据库 > 详细

MySql 查询数据库中所有表名

时间:2018-06-15 15:38:42      阅读:175      评论:0      收藏:0      [点我收藏+]

标签:base   table   orm   mat   查询   from   sql   form   sel   

查询数据库中所有表名
select table_name from information_schema.tables where table_schema=‘数据库名‘ and table_type=‘base table‘;


查询指定数据库中指定表的所有字段名column_name
select column_name from information_schema.columns where table_schema=‘数据库名‘ and table_name=‘表名‘

MySql 查询数据库中所有表名

标签:base   table   orm   mat   查询   from   sql   form   sel   

原文地址:https://www.cnblogs.com/javabg/p/9186921.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!