标签:
查询smp_db数据库中所有的数据表INFORMATION_SCHEMA.TABLES
select TABLE_NAME from INFORMATION_SCHEMA.TABLES where TABLE_SCHEMA=‘smp_db‘
查询smp_db数据库中smp_import_db表所有的字段information_schema.`COLUMNS`
select COLUMN_NAME from information_schema.`COLUMNS` where TABLE_SCHEMA=‘smp_db‘ and TABLE_NAME=‘smp_import_db‘
标签:
原文地址:http://www.cnblogs.com/img-zoom/p/5159457.html