2015-06-01から1日間の記事一覧

postgres 配列操作 削除

Postgres 9.3 で追加された array_remove() 相当のクエリ $ select array_remove('{a,b,c}'::text[], 'b'); array_remove ────────────── {a,c} (1 row) $ select array( select x from unnest('{a,b,c}'::text[]) x where x <> 'b' ); array ─────── {a,c} …