array

Array slicing

Returns an array containing the selected inclusive subscript interval; a wholly out-of-range slice is empty.

Formal Syntax & Structure

sql syntaxsql
(array_expression)[lower:upper]

Working Example

Example Snippetsql
SELECT (ARRAY[4,8,12])[2:3];
SQL Reference