enum_first()

Returns the first value of the input enum type

Reference: DuckDB 1.5.5

Arguments & returns

enum_first(enum)

Scalar
Overload link enum Returns
#01 ANY VARCHAR

Example

enum_first example
SQL
Haybarn WASM 2.0.0-rc12 · In your browser

Guide example · Run to view results.

Catalog examples

SELECT
  enum_first(NULL::mood);