w3resource
MySQL Tutorial

PostgreSQL ARRAY_DIMS() function

ARRAY_DIMS() function

This function is used to return a text representation of array's dimensions.

Syntax:

array_dims(anyarray)

Return Type:

text

PostgreSQL Version: 9.3

Example: PostgreSQL ARRAY_DIMS() function

Code:

SELECT array_dims(ARRAY[[2,2,4], [5,3,6]]);

Sample Output:

 array_dims
------------
 [1:2][1:3]
(1 row)


New Content: Composer: Dependency manager for PHP, R Programming