SELECT * FROM information_schema.`TABLES` where TABLE_SCHEMA = '数据库名';
SELECT * FROM information_schema.`COLUMNS` where TABLE_SCHEMA = '数据库名' and TABLE_NAME = '数据表名';
创建一个表,和原来的表一致的表结构
CREATE TABLE 新表 LIKE 旧表;
SELECT * FROM information_schema.`TABLES` where TABLE_SCHEMA = '数据库名';
SELECT * FROM information_schema.`COLUMNS` where TABLE_SCHEMA = '数据库名' and TABLE_NAME = '数据表名';
创建一个表,和原来的表一致的表结构
CREATE TABLE 新表 LIKE 旧表;