LEN (array)

Function LEN is also found in the following categories: String functions.

Syntax

LEN( value )

Description

Returns the number of the value items.

Argument types:

  • valueArray of fractional numbers | Array of integers | Array of strings

Return type: Integer

Examples

LEN(ARRAY(1, 2, 3)) = 3
LEN(ARRAY('a', 'b', NULL, 'c')) = 4

Data source support

ClickHouse 21.8, PostgreSQL 9.3.

Previous