表1create table table1(id int not null,name varchar(50))create table table2(id int not null,name varchar(50))insert into table1select id,name from table1 where not exists(select 1 from table2 where table1.id = table2.id)