# 复制表结构到新表,不包括主键、索引等约束设置
create table student_copy select * from student where 1=2
# 复制表结构和数据到新表,不包括主键、索引等约束设置
create table student_copy select * from student
# 复制表结构,包括主键、索引等约束设置
CREATE TABLE student_copy LIKE student;
# 导入数据
INSERT INTO student_copy SELECT * FROM student;