当前位置:Gxlcms > 数据库问题 > MySql 查询数据库中所有表

MySql 查询数据库中所有表

时间:2021-07-01 10:21:17 帮助过:29人阅读

 

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

MySql 查询数据库中所有表

标签:sql   mysql   column   数据库   div   ble   nbsp   字段   info   

人气教程排行