MySQL Forums
Forum List  »  Newbie

Storing bitwise values in mysql
Posted by: Jeff Wolkove
Date: September 03, 2004 03:01AM

I have just read that MySQL can handle 64-bit logical
operations on a bigint field. I would like to have some
suggestions on how to turn the bits on. Is there a handy
function that does this? Working with something like
(a | 1125899906842624) to switch on bit 50 is going to
be hard to work with. Perhaps MySQL has some internal
constants that I have not found yet.

Thank you



Options: ReplyQuote


Subject
Written By
Posted
Storing bitwise values in mysql
September 03, 2004 03:01AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.