MySql 查询数据库中所有表名

时间:2018-06-15 14:21:27   收藏:0   阅读:201

查询数据库中所有表名
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=‘表名‘

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

评论(0
© 2014 bubuko.com 版权所有 - 联系我们:wmxa8@hotmail.com
打开技术之扣,分享程序人生!