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, 6641🔥, 0💬
Popular Posts:
How To Find Out What Privileges a User Currently Has in Oracle? Privileges granted to users are list...
How To Download Oracle Database 10g XE in Oracle? If you want to download a copy of Oracle Database ...
How To Install PHP on Windows in MySQL? The best way to download and install PHP on Windows systems ...
What is sqlservr.exe - Process - SQL Server (SQLEX?PRESS) in SQL Server? Process sqlservr.exe is the...
How To Select All Columns of All Rows from a Table with a SELECT statement in SQL Server? The simple...