Skip to main content
Version: current [25.0.x]

ARRAY_SIZE

Categories: Semi-Structured Data

ARRAY_SIZE

Returns the size of the input array.

Syntax

ARRAY_SIZE(arr LIST) → numeric

  • arr: The source array.

Examples

ARRAY_SIZE example
SELECT ARRAY_SIZE(ARRAY[1, 4, 5])
-- 3