如图,a,b表数据如下按你要求,写语句:insert into b select * from a where not exists (select 1 from b where a.id=b.id and a.name=b.name);