Check out example codes for "postgresql insert select". It will help you in understanding the concepts better.

Code Example 1

insert into items_ver(item_id, item_group, name)
select * from items where item_id=2;

Learn ReactJs, React Native from akashmittal.com