union_tag()

Retrieve the currently selected tag of the union as an ENUM

Reference: DuckDB 1.4.4

Arguments & returns

union_tag(union)

Scalar
Overload link union Returns
#01 UNION ANY

Example

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

Engine example · Run to view results.