I have a table in which I try to update several values ββat once. Here is the table layout:
Column | Type | Modifiers ---------------+---------+----------- user_id | integer | subservice_id | integer |
I have user_id and want to insert several subservice_id . Is there any syntax in Postgres that will allow me to do something like this
insert into user_subservices(user_id, subservice_id) values(1, [1, 2, 3]);
How should I do it?
postgresql
jhamm Dec 28 '13 at 13:20 2013-12-28 13:20
source share