How to do bitwise exclusive OR in sql server between two binary types?

后端 未结 4 1518
心在旅途
心在旅途 2021-01-05 03:16

According this link: Bitwise Operators (Transact-SQL) we can do bitwise operation between binary and int, smallint, tinyint or vice versa.

But how can I make a bitwi

4条回答
  •  旧时难觅i
    2021-01-05 03:57

    I used bigints for storing both values. This way you'll get more range. If the value is bigger than bigint, you might need to split the values in two bigint and use AND / OR operator combination.

提交回复
热议问题