#如果表存在: insert into tab1 select * from tab2; #只导一个字段: insert into tab1(id) select id from tab2 where catid=522; #如果表不存在: create table tab1 as select * from tab2;
#如果表存在: insert into tab1 select * from tab2; #只导一个字段: insert into tab1(id) select id from tab2 where catid=522; #如果表不存在: create table tab1 as select * from tab2;