复制表结构
CREATE TABLE tb_students_copy LIKE tb_students_info;
查询mysql所有表数据、字段信息
mysql 查询表 所有字段
前2种有重复
select COLUMN_NAME,column_comment from
information_schema.COLUMNS where table_name = 'db_car_apply'
-- 查询表字段
select COLUMN_NAME from information_schema.COLUMNS
where table_name = '表名' and table_schema = '数据库名';
-- 查询所有字段, 含约束
SHOW FULL COLUMNS FROM 表名