>>

USAGE

number >> count

Value Name

Description

number

The starting number

count

The number of bit positions to shift to the right

DETAILS

The >> operator returns the starting number after shifting the bits rightward 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 SHIFTR(x, y).

SYNONYMS

SCHEMA

PARAMETERS

SKYSQL

PRIVILEGES

EXAMPLES

SELECT 5 >> 1, 5 >> 2, 5 >> 3;
+--------+--------+--------+
| 5 >> 1 | 5 >> 2 | 5 >> 3 |
+--------+--------+--------+
|      2 |      1 |      0 |
+--------+--------+--------+

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