mysql-bit computing in the Summary

& Bitwise AND & meet a plurality of operands may be simultaneously performed a bitwise sequentially from left to right in the order calculated at the time of the specific operation

        1 and 1 to 1, the other 0

 

 

 | Bitwise or may have a plurality of symbols or simultaneous operation, sequentially from left to right in the order calculated at the specific operation

    1 results with any number of operations are 1,0 or 0 and is 0 or operation

 

 ~ Bitwise, bitwise operation the only single operand Bitwise Operators

     I.e., a calculation result is negated the result is negated 0,0 1

 

^ Bitwise exclusive or may have a plurality of operands bitwise AND simultaneously, sequentially from left to right in the order calculated at the specific calculation

       I.e., the same number of XOR result after 0, a different number of exclusive OR 1

 

Guess you like

Origin www.cnblogs.com/kukai/p/11247629.html