Funzione shiftleft
Si applica a: Databricks SQL Databricks Runtime
Restituisce un valore a sinistra bit per bit spostato in n
base ai bit.
Sintassi
shiftleft(expr, n)
Argomenti
expr
: espressioneINTEGER
oBIGINT
.n
: espressioneINTEGER
.
Resi
Il risultato corrisponde al tipo di expr
.
Se n
è minore di 0, il risultato è 0.
Esempi
> SELECT shiftleft(2, 1);
4