array

ARRAY constructor

Constructs a typed array from compatible expressions; empty constructors need an explicit type.

Formal Syntax & Structure

sql syntaxsql
ARRAY[expression, ...]

Working Example

Example Snippetsql
SELECT ARRAY[4,8,12];
SQL Reference