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‘

MySql 查询数据库中所有表名

上一篇:vbox下Oracle Enterprise liunx5.4虚拟机安装10G RAC实验(二)


下一篇:sql 分组统计查询并横纵坐标转换