insert row with select postgressql code example
Example 1: postgresql insert select
insert into items_ver(item_id, item_group, name)
select * from items where item_id=2;
Example 2: postgresql, Rows, INSERT INTO
INSERT INTO table_name(column1, column2, …)
VALUES (value1, value2, …)
RETURNING *;Code language: SQL (Structured Query Language) (sql)