Back to Trino

Row functions

docs/src/main/sphinx/functions/row.md

482272 B
Original Source

Row functions

Functions for the ROW data type.

:::{function} ROW::fields(data) -> array(varchar) Returns all the field names of the data ROW.

sql
SELECT ROW::fields(row('hello' as greeting, 'world' as planet));
-- ['GREETING', 'PLANET']

:::