BITXOR
Syntax
INT BITXOR(INT number1, INT number2)
Description
The BITXOR function is used to perform the bitwise XOR operation. The bitwise XOR operation compares the binary bits of two integers bit by bit. If the two corresponding bits are different, the result bit is 1. If they are the same, the result bit is 0.
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.
What is your overall rating for this page?
Thank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot