Share via


Funzione shiftleft

Si applica a:check marked yes Databricks SQL check marked yes Databricks Runtime

Restituisce un valore a sinistra bit per bit spostato in n base ai bit.

Sintassi

shiftleft(expr, n)

Argomenti

  • expr: espressione INTEGER o BIGINT .
  • n: espressione INTEGER .

Resi

Il risultato corrisponde al tipo di expr.

Se n è minore di 0, il risultato è 0.

Esempi

> SELECT shiftleft(2, 1);
 4