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] 

use || concatenation operator

select      array_fill(5, array[4]) ||     array_fill(2, array[3]) ||     array_fill(11, array[3]) 

Comments

Popular posts from this blog

git - TortoiseGit does not show commit log properly -

string - Using python and postgres, variables within execute function? -