How can I make a bitwise shift in MySQL? Is there any specific instruction or operator? If not, how to simulate it optimally?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Have a look at the bitwise operators in
MySQLfirst: http://dev.mysql.com/doc/refman/5.0/en/bit-functions.htmlThen you have left shift:
http://dev.mysql.com/doc/refman/5.0/en/bit-functions.html#operator_left-shift
And right shift:
http://dev.mysql.com/doc/refman/5.0/en/bit-functions.html#operator_right-shift