description |
---|
Shifts the bits of the numeric expression to the left. |
- expression1: Integer to shift.
- expression2: The number of bits to shift by.
Examples
{% code title="LSHIFT example" %}
SELECT LSHIFT(1, 120)
-- 16777216
{% endcode %}
{% code title="LSHIFT example" %}
SELECT LSHIFT(16, 1)
-- 32
{% endcode %}
- expression1: Integer to shift.
- expression2: The number of bits to shift by.
Examples
{% code title="LSHIFT example" %}
SELECT LSHIFT(1, 120)
-- 16777216
{% endcode %}
{% code title="LSHIFT example" %}
SELECT LSHIFT(16, 1)
-- 32
{% endcode %}