Collections:
AND, OR, XOR, and NOT - Bitwise Operations in SQL Server
What Are Bitwise Operations in SQL Server Transact-SQL?
✍: FYIcenter.com
Bitwise operations are binary operations performed on one or two binary strings. SQL Server supports 4 bitwise operations:
The table below shows you how single bit Boolean operations work:
Input 1: 0 0 1 1
Input 2: 0 1 0 1
----------------
& (AND) 0 0 0 1
Input 1: 0 0 1 1
Input 2: 0 1 0 1
----------------
| (OR) 0 1 1 1
Input 1: 0 0 1 1
Input 2: 0 1 0 1
----------------
^ (XOR) 0 1 1 0
Input 1: 0 0 1 1
----------------
~ (NOT) 1 1 0 0
⇒ Date/Time Operations and Functions in SQL Server Transact-SQL
⇐ bin2hex - Converting Binary Strings into Hexadecimal Character Strings in SQL Server
⇑ Character Strings and Binary Strings in SQL Server Transact-SQL
2017-02-25, 7298🔥, 0💬
Popular Posts:
How to run Queries with SQL Server Management Studio Express in SQL Server? 1. Launch and connect SQ...
How To Connect to a MySQL Server with a Port Number in MySQL? If you want to connect a MySQL server ...
How To Concatenate Two Character Strings Together in SQL Server Transact-SQL? Concatenating two char...
How to download and install the scaled-down database AdventureWorksLT in SQL Server? If you want to ...
Where to find answers to frequently asked questions on INSERT, UPDATE and DELETE Statements in MySQL...