显示数据库的所有表名,字段名,库名

1.显示所有的表名:

show tables from xxx

  显示表的详细信息:

desc xxx表名

2.显示所有的字段名,并用,号分割:

select GROUP_CONCAT(column_name) from information_schema.columns where table_name= 'xxx表名'; 

3.显示所有的数据库名:

show databases
原文地址:https://www.cnblogs.com/wonder2636/p/5524404.html