Skip to content
Advertisement

How to insert column of other table in postgresql

I want to insert a column of other table and one parameter of this table have a hard coded value. I want to iterate this value with the each return value of other table column. How can i do this with insert query?

let 3,4,6 is the return column value of other table.

Return column

Advertisement

Answer

Get rid of the values clause:

User contributions licensed under: CC BY-SA
9 People found this is helpful
Advertisement