mysql获取指定数据库所有表名和获取指定表所有字段名

来源:互联网 发布:linux route 编辑:程序博客网 时间:2024/05/01 22:59
查询数据库中所有表名
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'
0 0
原创粉丝点击