struct_position()

Get the position of the entry in an unnamed STRUCT, starting at 1.

Reference: DuckDB 2.0.0

Arguments & returns

struct_position(struct, entry)

Scalar
Overload link structentry Returns
#01 TUPLEANY INTEGER

Example

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

Engine example · Run to view results.