cast_to_type()

Casts the first argument to the type of the second argument

Reference: DuckDB 1.3.2

Arguments & returns

cast_to_type(param, type)

Scalar
Overload link paramtype Returns
#01 ANYANY ANY

Example

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

Engine example · Run to view results.