2][1:3]
array_fill(anyelement, int[], [, int[]])
anyarray
returns an array initialized with supplied value and dimensions, optionally with lower bounds other than 1
array_fill(7, ARRAY[3], ARRAY[2])
[2:4]={7,7,7}
array_length(anyarray, int)
int
returns the length of the requested array dimension
array_length(array[1,2,3], 1)
3
array_lower(anyarray, int)
int
returns lower bound of the requested array dimension
array_lower('[0:2]={1,2,3}'::int[], 1)
0
array_prepend(anyelement, anyarray)
anyarray
append an element to the beginning of an array
array_prepend(1, ARRAY[2,3])
{1,2,3}
array_to_string(anyarray, text [, text])
text
concatenates array elements using supplied delimiter and optional null string
array_to_string(ARRAY[1, 2, 3, NULL, 5], ',', '*')
1,2,3,*,5
array_upper(anyarray, int)
int
returns upper bound of the requested array dimension
array_upper(ARRAY[1,8,3,7], 1)
4
string_to_array(text, text [, text])
text[]
splits string into array elements using supplied delimiter and optional null string
string_to_array('xx~^~yy~^~zz', '~^~', 'yy')
{xx,NULL,zz}
unnest(anyarray)
setof anyelement
expand an array to a set of rows
unnest(ARRAY[1,2])
1
2
(2 rows)