MySql 查询数据库中所有表名

查询数据库中所有表名
select table_name from information_schema.tables where table_schema='数据库名称';


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

posted @ 2021-12-15 23:26  往心。  阅读(4853)  评论(0编辑  收藏  举报