取数据库某个表中的所有的字段
select COLUMN_NAME from information_schema.COLUMNS where table_name = ‘your_table_name‘ and table_schema = ‘your_db_name‘;
获取指定数据库的所有数据表 SELECT * FROM information_schema.TABLES WHERE TABLE_SCHEMA=‘数据库名‘; 附网址:http://blog.csdn.net/boshuzhang/article/details/65632708
原文:https://www.cnblogs.com/phpk/p/10930693.html