I have
crew_member_ids integer[],
column in table. And want to change all entry of specific id (for example 1) to another id (for example 10)
{} - > {}
{1, 2} -> {10, 2}
{2, 3} -> {2, 3}
{1} -> {10}
How can i do it ?
So far I managed only to select lines to be affected with
select * from initial_costs where 1 = any(crew_member_ids);