您的位置:首页 > 数据库 > MySQL

mysql 数据表名,字段名查询

2017-05-16 11:33 204 查看
查询数据库中所有表名
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' 
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: