Subject | Bitwise AND and OR ? |
---|---|
Author | rjschappe |
Post date | 2004-05-30T23:09:16Z |
Can someone tell me what the bitwise AND and OR operators are?
I have a bunch of binary flags stored in an integer field and I need
to select only those where a certain flag is "on"...
In MS SQL Server it was "&" and "|" and I changed the pipe to two
pipes (||) and that appeard to work... but when I tried to change the
ampersand to two ampersands (&&) FireBird did not appear to like
that...
Thanks for any help,
--Raymond
I have a bunch of binary flags stored in an integer field and I need
to select only those where a certain flag is "on"...
In MS SQL Server it was "&" and "|" and I changed the pipe to two
pipes (||) and that appeard to work... but when I tried to change the
ampersand to two ampersands (&&) FireBird did not appear to like
that...
Thanks for any help,
--Raymond