示例
antdb=# select array_append(ARRAY[1,2], 3);
array_append
--------------
{1,2,3}
(1 row)
antdb=# select array_cat(ARRAY[1,2,3], ARRAY[4,5]);
array_cat
-------------
{1,2,3,4,5}
(1 row)
antdb=# select array_ndims(ARRAY[[1,2,3], [4,5,6]]);
array_ndims
-------------
2
(1 row)
antdb=# select array_dims(ARRAY[[1,2,3], [4,5,6]]);
array_dims
------------
[1:2][1:3]
(1 row)
antdb=# select array_fill(7, ARRAY[3], ARRAY[2]);
array_fill
---------------
[2:4]={7,7,7}
(1 row)
antdb=# select array_length(array[1,2,3], 1);
array_length
--------------
3
(1 row)
antdb=# select array_lower('[0:2]={1,2,3}'::int[], 1);
array_lower
-------------
0
(1 row)
antdb=# select array_position(ARRAY['sun','mon','tue','wed','thu','fri','sat'], 'mon');
array_position
----------------
2
(1 row)
antdb&#