Skip to main content
Returns the number of elements in an array. The result type is INT. If the input parameter is NULL, the result is also NULL. Null elements are counted in the length. It is the alias of array_length(). This function is supported from v3.0 onwards.

Syntax

Parameters

any_array: the ARRAY value from which you want to retrieve the number of elements.

Return value

Returns an INT value.

Examples

text

keyword

CARDINALITY, ARRAY_LENGTH, ARRAY