June 26, 2012 at 3:45 am
hi
simple question, what does the ^ do in t-sql?
it's eluding me on google
thanks
EDIT:
aha, bitwise OR
hmm
June 26, 2012 at 4:03 am
darth_vodka (6/26/2012)
hisimple question, what does the ^ do in t-sql?
it's eluding me on google
thanks
EDIT:
aha, bitwise OR
hmm
Hi darth_vodka,
This is binary XOR.
--rhythmk
------------------------------------------------------------------
To post your question use below link
https://www.sqlservercentral.com/articles/forum-etiquette-how-to-post-datacode-on-a-forum-to-get-the-best-help
🙂
June 26, 2012 at 4:47 am
Hi,
its ^ (Bitwise Exclusive OR)
Here is the small example using that operator.
CREATE TABLE bitwise
(
A int NOT NULL,
B int NOT NULL
)
INSERT bitwise VALUES (170, 75)
select * from bitwise
SELECT A ^ B FROM bitwise
--Returns 225
Viewing 3 posts - 1 through 2 (of 2 total)
You must be logged in to reply to this topic. Login to reply