Software Outsourcing, Offshore Software Development, Offshore Outsourcing Services, IT Outsourcing, Offshore Development
MySQL manual Offshore Software Outsourcing and Programming, IT Outsourcing Offshore Software Development  
Call Us Today: 1-800-678-9001
Offshore Software Outsourcing and Programming, IT Outsourcing Offshore Software Development

Home / Technical Support / MySQL

Key Offerings:

B2B and B2C E-Business Solutions

Offshore Software Development Outsourcing

Strategic Consulting

Offshore Software Outsourcing

About ALTOROS: ALTOROS Systems is headquartered in Tampa, Florida and maintains an office near Boston, Massachusetts and technology development center in Belarus and Russia. ALTOROS specializes on providing value-added e-commerce and web-based software development and offshore software outsourcing services to emerging enterprises helping them successfully plan and implement business initiatives.

Contact Us for more information.

Node: Bit functions, Next: Miscellaneous functions, Prev: Other Functions, Up: Other Functions
Bit Functions
 
MySQL uses BIGINT (64-bit) arithmetic for bit operations, so these operators have a maximum range of 64 bits.
 
 
 
|
Bitwise OR
mysql> SELECT 29 | 15;
        -> 31
 
The result is an unsigned 64-bit integer.
 
 
&
Bitwise AND
mysql> SELECT 29 & 15;
        -> 13
 
The result is an unsigned 64-bit integer.
 
 
^
Bitwise XOR
mysql> SELECT 1 ^ 1;
        -> 0
mysql> SELECT 1 ^ 0;
        -> 1
mysql> SELECT 11 ^ 3;
        -> 8
 
The result is an unsigned 64-bit integer.
 
 
<<
Shifts a longlong (BIGINT) number to the left:
mysql> SELECT 1 << 2;
        -> 4
 
The result is an unsigned 64-bit integer.
 
 
>>
Shifts a longlong (BIGINT) number to the right:
mysql> SELECT 4 >> 2;
        -> 1
 
The result is an unsigned 64-bit integer.
 
 
~
Invert all bits:
mysql> SELECT 5 & ~1;
        -> 4
 
The result is an unsigned 64-bit integer.
 
 
BIT_COUNT(N)
Returns the number of bits that are set in the argument N:
mysql> SELECT BIT_COUNT(29);
        -> 4
 
Offshore Software Outsourcing company Russia Florida Massachusetts Boston Belarus, Offshore Software Development Services, Offshore Programming and IT OutsourcingOffshore Development, Programming  Services, Tampa FL Russia, E-commerce, Database, CRM, Financial Insurance Health Care Real EstateOffshore Software Development Services, Software Outsourcing Russia
HOME PAGE, Offshore Software Outsourcing Company, offshore IT outsourcing services, offshore 
software development Russia Massachusetts Florida New York CT VT RI software development