Answer the question
In order to leave comments, you need to log in
Postgresql how to update existing array values?
There is a Postgresql chat_channels table with a users integer[] NOT NULL DEFAULT ARRAY[]::integer[] column
. It stores user id arrays.
How to replace the id of a certain user with the id of another in all rows of the table where this id is? The rest of the array elements should remain unchanged.
Thank you.
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