Lưu ý
Cần có ủy quyền mới truy nhập được vào trang này. Bạn có thể thử đăng nhập hoặc thay đổi thư mục.
Cần có ủy quyền mới truy nhập được vào trang này. Bạn có thể thử thay đổi thư mục.
Applies to:
Databricks SQL
Databricks Runtime 15.4 and above
Returns expr bitwise left shifted by n bits. This operator is a synonym for shiftleft function.
Syntax
expr << n
Arguments
expr: AnINTEGERorBIGINTexpression.n: AnINTEGERexpression.
Returns
The result matches the type of expr.
The effective shift distance is n modulo 32 for an INTEGER expr and modulo 64 for a BIGINT expr.
Examples
> SELECT 2 << 1;
4
> SELECT 1 << -1;
-2147483648