หมายเหตุ
การเข้าถึงหน้านี้ต้องได้รับการอนุญาต คุณสามารถลอง ลงชื่อเข้าใช้หรือเปลี่ยนไดเรกทอรีได้
การเข้าถึงหน้านี้ต้องได้รับการอนุญาต คุณสามารถลองเปลี่ยนไดเรกทอรีได้
Applies to:
Databricks SQL
Databricks Runtime
Returns a bitwise unsigned right shifted by n bits.
Syntax
shiftrightunsigned(expr, n)
Arguments
expr: AnINTEGERorBIGINTexpression.n: AnINTEGERexpression specifying the number of bits to shift.
Returns
The result type matches expr.
When n is negative the result is 0.
Examples
> SELECT shiftrightunsigned(4, 1);
2
> SELECT shiftrightunsigned(-4, 1);
2147483646