Why is (a | b ) equivalent to a - (a & b) + b?

前端 未结 4 1389
孤城傲影
孤城傲影 2021-02-04 03:26

I was looking for a way to do a BITOR() with an Oracle database and came across a suggestion to just use BITAND() instead, replacing BITOR(a,b) with a + b - BITAND(a,b).

4条回答
提交回复
热议问题