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, 6530🔥, 0💬
Popular Posts:
What Happens If the Imported Table Already Exists in Oracle? If the import process tries to import a...
Can You Drop an Index Associated with a Unique or Primary Key Constraint in Oracle? You can not dele...
How To Install Oracle Database 10g XE in Oracle? To install 10g universal edition, double click, Ora...
How to connect SQL Server Management Studio Express to SQL Server 2005 Express in SQL Server? Once y...
What Happens to Your Transactions When ERROR 1213 Occurred in MySQL? If your transaction receives th...