mysql查询数据库中所有表名、指定表的字段名

MySql 查询数据库中所有表名

 

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


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

posted @ 2020-03-27 16:29  柿子秧  阅读(93)  评论(0)    收藏  举报