回答編集履歴
2
コメント追記
test
CHANGED
@@ -1,6 +1,10 @@
|
|
1
1
|
配列との結合は配列用の演算子を用いることができます。
|
2
2
|
|
3
3
|
[9.18. 配列関数と演算子](https://www.postgresql.jp/document/10/html/functions-array.html)
|
4
|
+
|
5
|
+
|
6
|
+
|
7
|
+
※withの部分はデータの代わりに記述しているので、実際には必要ありません。
|
4
8
|
|
5
9
|
```SQL
|
6
10
|
|
1
推敲 表現統一
test
CHANGED
@@ -8,7 +8,7 @@
|
|
8
8
|
|
9
9
|
ユーザ as (
|
10
10
|
|
11
|
-
select 1::int as id, 'sato'::text as name ,
|
11
|
+
select 1::int as id, 'sato'::text as name ,'{1,2}'::integer[] as groupid
|
12
12
|
|
13
13
|
union all select 2,'tanaka','{2,3}'
|
14
14
|
|