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

angular - DownloadURL return null in below code -

python 2.7 - Given three nested dictionaries, sort the top two nested dictionaries from a value in the innermost dictionary? -