Ivan
Ivan

Reputation: 15912

Bitwise shift in mysql

How can I make a bitwise shift in MySQL? Is there any specific instruction or operator? If not, how to simulate it optimally?

Upvotes: 4

Views: 5089

Answers (3)

ain
ain

Reputation: 22749

Looks like there is shift operators available, ie >> for right shift.

Upvotes: 1

Dirk
Dirk

Reputation: 3093

To use a bitwise shift in MySQL, you can use << or >> for left shift or right shift respectively.

Upvotes: 3

Related Questions