postgresql - Concatenate multiple arrays in Postgres -
is there way concatenate multiple arrays 1 array in postgres?
for example, this:
array_cat( array_fill(5, array[4]), array_fill(2, array[3]), array_fill(11, array[3]) ) for example, i'd see output of
[5,5,5,5,2,2,2,11,11,11]
select array_fill(5, array[4]) || array_fill(2, array[3]) || array_fill(11, array[3])
Comments
Post a Comment