Answer the question
In order to leave comments, you need to log in
Psql INSERT INTO .. how to pass one value via SELECT and the rest are static?
Hello.
Stuck on the following problem...
There is a sign: product_id | taxon_id | position
I want to make INSERT into it, and I need to get product_id via SELECT from another table, and specify taxon_id and position with static values (for example, 592 and 1).
Those. if we consider INSERT with static values:
INSERT INTO products_taxons (product_id,taxon_id,position) VALUES (3500,592,1);
SELECT product_id FROM table_name;
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