Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SQL

postgresql sql insert into select from values

INSERT INTO target(c1, c2)
SELECT source.c1, source.c2
FROM (VALUES
          ('a', 1),
          ('b', 2)
     ) AS source(c1, c2);
Source by dba.stackexchange.com #
 
PREVIOUS NEXT
Tagged: #postgresql #sql #insert #select #values
ADD COMMENT
Topic
Name
8+6 =