mysql 数据表合并
2020-03-30 本文已影响0人
安晓生
类似这样
create procedure merge_table()
BEGIN
select id,name into test3 from test2;
insert into aa select id,name from test1;
drop table test1;
alter table test3 rename to test1;
end;
类似这样
create procedure merge_table()
BEGIN
select id,name into test3 from test2;
insert into aa select id,name from test1;
drop table test1;
alter table test3 rename to test1;
end;