shiftleft
function
Applies to: Databricks SQL Databricks Runtime
Returns a bitwise left shifted by n
bits.
Syntax
shiftleft(expr, n)
Arguments
expr
: AnINTEGER
orBIGINT
expression.n
: AnINTEGER
expression.
Returns
The result matches the type of expr
.
If n
is less than 0 the result is 0.
Examples
> SELECT shiftleft(2, 1);
4
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