<<

USAGE

number << count

Value Name

Description

number

The starting number

count

The number of bit positions to shift to the left

DETAILS

The << operator returns the starting number after shifting the bits leftward count bit positions.

A NULL is returned if either value is NULL.

The expression x << y behaves in exactly the same manner as the function call SHIFTL(x, y).

SYNONYMS

SCHEMA

PARAMETERS

SKYSQL

PRIVILEGES

EXAMPLES

SELECT 1 << 0, 1 << 1, 3 << 2;
+--------+--------+--------+
| 1 << 0 | 1 << 1 | 3 << 2 |
+--------+--------+--------+
|      1 |      2 |     12 |
+--------+--------+--------+

ERROR HANDLING

FEATURE INTERACTION

RESPONSES

DIAGNOSIS

ISO 9075:2016

CHANGE HISTORY

Release Series

History

23.09

  • Present starting in MariaDB Xpand 23.09.1.

6.1

  • Present starting in MariaDB Xpand 6.1.0.

6.0

  • Present starting in MariaDB Xpand 6.0.3.

5.3

  • Present starting in MariaDB Xpand 5.3.13.

Release Series

History

6.0

  • Present starting in MariaDB Xpand 6.0.3.

5.3

  • Present starting in MariaDB Xpand 5.3.13.

Release Series

History

6.1

  • Present starting in MariaDB Xpand 6.1.0.

EXTERNAL REFERENCES