Answer the question
In order to leave comments, you need to log in
PostgreSQL, condition on column from INSERT?
Good afternoon!
I will lay out at once an example of a code which does not work. How to make it possible to add a condition on a column from the INSERT table to WHERE?
INSERT INTO table1 (
column1
)
SELECT column2
FROM table2
WHERE (column2 = table1.column3)
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question