mysql中表copy中的几种方法
1、方式1:CREATE TABLE new_staff LIKE staff;

3、方式2:create table new2_staff as (select * from staff);

5、有没有发现,create table 新表名 as 后面是 一个selelct 语句因此新表中可以只包括新表中部分字段命令:create table new2_staff as (select id,current_ from staff);

1、方式1:CREATE TABLE new_staff LIKE staff;
3、方式2:create table new2_staff as (select * from staff);
5、有没有发现,create table 新表名 as 后面是 一个selelct 语句因此新表中可以只包括新表中部分字段命令:create table new2_staff as (select id,current_ from staff);