Skip to content

Latest commit

 

History

History
35 lines (25 loc) · 868 Bytes

File metadata and controls

35 lines (25 loc) · 868 Bytes
description
Shifts the bits of the numeric expression to he right.

RSHIFT

Syntax

RSHIFT(expression1 int32, expression2 int32) → int32

  • expression1: Integer to shift.
  • expression2: The number of bits to shift by.

Examples

{% code title="RSHIFT example" %}

select RSHIFT(1,1)
-- 0

{% endcode %}

RSHIFT(expression1 int64, expression2 int64) → int64

  • expression1: Integer to shift.
  • expression2: The number of bits to shift by.

Examples

{% code title="RSHIFT example" %}

sample call 1
-- sample return 1

{% endcode %}