postgress insert into from another table code example Example: postgre insert select insert into TABLENAMEA (A,B,C,D) select A,B,C,D from TABLENAMEB