หมายเหตุ
การเข้าถึงหน้านี้ต้องได้รับการอนุญาต คุณสามารถลอง ลงชื่อเข้าใช้หรือเปลี่ยนไดเรกทอรีได้
การเข้าถึงหน้านี้ต้องได้รับการอนุญาต คุณสามารถลองเปลี่ยนไดเรกทอรีได้
The INTBITLEFTSHIFT function returns the result of a bitwise left shift operation on an integer value.
Syntax
INTBITLEFTSHIFT(<numeric_expr_1>, <numeric_expr_2>)
Arguments
| Description | |
|---|---|
numeric_expr_1 |
The numeric expression to shift. |
numeric_expr_2 |
The number of bits to shift. |
Return types
Returns a numeric expression.
Examples
This section contains examples of how to use this query language construct.
Bitwise left shift
In this example, the INTBITLEFTSHIFT function is used to perform a bitwise left shift operation.
SELECT VALUE {
shiftInteger: INTBITLEFTSHIFT(16, 4),
shiftDecimal: INTBITLEFTSHIFT(16, 0.4)
}
[
{
"shiftInteger": 256
}
]