Updated on 2026-06-27 GMT+08:00

BITXOR

Syntax

INT BITXOR(INT number1, INT number2)

Description

The BITXOR function is used to perform a bitwise XOR operation.

Notes and Constraints

This section applies only to MRS 3.6.0-LTS.1 and later.

Input Parameters

Parameter

Data Type

number1

INT

number2

INT

The input and output parameters must be of the same integer type.

Example

CREATE TABLE source (
  f_sequence INT
) WITH (
  'connector' = 'datagen',
  'rows-per-second' = '1'
);
create TABLE print with(
'connector' = 'print'
)as select
  BITXOR (2, 3) as int1
from source;

The returned result is 1, and the data type is INT.