【发布时间】:2021-12-26 16:18:56
【问题描述】:
我有
crew_member_ids integer[],
表格中的列。 并希望将特定id(例如1)的所有条目更改为另一个id(例如10)
{} - > {}
{1, 2} -> {10, 2}
{2, 3} -> {2, 3}
{1} -> {10}
我该怎么做?
到目前为止,我只设法选择了受影响的行
select * from initial_costs where 1 = any(crew_member_ids);
【问题讨论】:
标签: sql arrays postgresql