::
(colon colon sign) operator
Applies to: Databricks SQL Databricks Runtime
Casts the value expr
to the target data type type
. This operator is a synonym for cast function.
Syntax
expr :: type
Arguments
expr
: Any castable expression.
Returns
The result is type type
.
Examples
> SELECT '20'::INTEGER;
20
> SELECT typeof(NULL::STRING);
string
Related functions
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for