select 句内で複数の配列を使用したいと考えています。ROWS FROM()
明らかなものは機能せず、postgresql は...を指しています。
select * from unnest(array[1,2], array[3,4]) as (a int, b int);
エラー:
UNNEST() with multiple arguments cannot have a column definition list
LINE 1: select * from unnest(array[1,2], array[3,4]) as (a int, b in...
^
HINT: Use separate UNNEST() calls inside ROWS FROM(), and attach a column definition list to each one.
...
select * from rows from (unnest(array[1,2]), unnest(array[3,4])) as (a int, b int);
エラー:
ROWS FROM() with multiple functions cannot have a column definition list
LINE 1: ...from (unnest(array[1,2]), unnest(array[3,4])) as (a int, b i...
^
HINT: Put a separate column definition list for each function inside ROWS FROM().
マニュアルでもこれについて説明していますが、これらの「個別の列定義」を定義する方法は?