When it comes to converting between data types, DuckDB performs implicit conversions when required, while also enabling us to perform explicit conversions. Implicit conversions are performed automatically by DuckDB when we do some other operation, such as use a function that requires its argument/s in a different data type than the one we’re providing. Regarding explicit conversions, we have the option of using a function like cast()
or try_cast()
, or using the shorthand method.
In this article we’ll take a quick look at how to convert between data types using the shorthand method.
Continue reading