Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SQL

postgres populate table from another table

INSERT INTO TABLE1 (id, col_1, col_2, col_3)
SELECT id, 'data1', 'data2', 'data3'
FROM TABLE2
WHERE col_a = 'something';
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #postgres #populate #table #table
ADD COMMENT
Topic
Name
4+4 =