Link Search Menu Expand Document

LENGTH

Returns the length (number of elements) of the given array.

Syntax

LENGTH(<arr>)
Parameter Description
<arr> The array to be checked for length.

Example

SELECT
	LENGTH([ 1, 2, 3, 4 ]) AS res;

Returns: 4