How to insert values into a table from a select query in PostgreSQL
https://dba.stackexchange.com/questions/2973/how-to-insert-values-into-a-table-from-a-select-query-in-postgresql
WebMay 27, 2011 · insert into new_table (const_col, a_col, b_col) select some_constant, a.col, b.col from a_table a, b_table b. Add a comment. INSERT INTO gate_pass(. site_id, gate_pass_element, sequence_no, createdby, createddate, lastmodifiedby, lastmodifieddate) SELECT 1, gatepasselement, 3, 1,now(),1,now()
DA: 21 PA: 14 MOZ Rank: 34