📅  最后修改于: 2022-03-11 15:05:10.811000             🧑  作者: Mango
//Postgres Database Query
insert into table1(column1,column2)
select c1,c2
from table2 a
where not exists ( select 0 from table1 b where b.id = a.id )