enum_first()

Returns the first value of the input enum type

Arguments & returns

enum_first(enum)

Scalar
Overload link enum Returns
#01 ANY VARCHAR

Example

enum_first example
SQL
Haybarn WASM 1.5.5-rc3 · In your browser

Guide example · Run to view results.

Catalog examples

SELECT
  enum_first(NULL::mood);