使用like进行表结构复制

 

原表:
create table log_00
(
   aiid int not null auto_increment,
   change_time datetime not null,
   primary key (aiid)
);

复制出的新表:
create table log_01 like log_00;
create table log_02 like log_00;
create table log_03 like log_00;
create table log_04 like log_00;

你可能感兴趣的:(table,null)