Lists & arrays
Scalar
list_element()
Extract the indexth (1-based) value from the list.
Alias of list_extract()
Arguments & returns
2 overloadslist_element(list, index)
Scalar
Example
Haybarn WASM 1.5.5-rc3 · In your browser
Engine example · Run to view results.
Catalog examples
SELECT
list_extract([4, 5, 6], 3);