copy column from one table to another without column duplicate postgres

Solutions on MaxInterview for copy column from one table to another without column duplicate postgres by the best coders in the world

showing results for - "copy column from one table to another without column duplicate postgres"
Eason
19 Sep 2017
1//Postgres Database Query
2insert into table1(column1,column2)
3select c1,c2
4  from table2 a
5 where not exists ( select 0 from table1 b where b.id = a.id )
6