HI ,
Can anyone explain the use of the ^ sybol with an example in Sql sever.
Thanks in advance,
Ravi.
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Sagar PardeshiRank #103 · 20.8K reputationPosted Jul 25, 2017, 1:30 AM EDT
The caret (^) translates to the XOR operator, which is a "bitwise exclusive or". In plain english it means "either, but not both". Here's what it does:
decimal 1 = binary 001decimal 1 = binary 001 XORXOR decimal 2 = binary 010decimal 3 = binary 011 = = decimal 3 = binary 011decimal 2 = binary 010