现在有两个数据库python01 、python02
**目标:python01的student表复制到python02数据库下**
这是python01的数据结构与数据
有两种方法介绍给大家 第二种方法可推进你们使用:
方法一:
create table student02 select * from python01.student;
这样数据被复制过来了但是字段属性没有完全复制过来。
方法2.
create table studentLike02 like python01.student;
这个方法表结构被复制过来了数据没过来 复制数据:
insert into `studentLike02` select * from python01.student;