标签:
1.显示所有的表名:
show tables from xxx
显示表的详细信息:
desc xxx表名
2.显示所有的字段名,并用,号分割:
select GROUP_CONCAT(column_name) from information_schema.columns where table_name= ‘xxx表名‘;
3.显示所有的数据库名:
show databases
标签:
原文地址:http://www.cnblogs.com/wonder2636/p/5524404.html