Array functions
ARRAY_LENGTH
Reference material for ARRAY_LENGTH function
Returns the length of the given array, i.e., how many elements it contains. Produces NULL
for NULL
arrays.
Alias: LENGTH (when used with an array argument)
Syntax
Parameters
Parameter | Description | Supported input types |
---|---|---|
<array> | The array whose length should be calculated | ARRAY |
Return Type
INTEGER
Example
Returns: 4
Returns: 2