Microsoft
Software
Hardware
Network
Question : Postgres and bitwise operator
I am trying to figure out how to check a column in my database to see if a bit is on or off. I have a bigint column that actually right now only represents 8 values or bits. What I need to do is check to see if the 5th value or 5th bit in this column is on or off. I have written one select statement that will give me everything up to the 5th bit but if the 6,7,and 8th bits are on with the 5th it ignores the count on those values. Here is my query:
select * from sometable where bigintcolumn >> 5=1;
Like I stated above this works fine until I have the 5th bit on with a bit from position 6 or greater on also. It will ignore these values. I guess I may be truncating everything past the 5th bit position in my query above.
Answer : Postgres and bitwise operator
I will award the points to you but do you know how I set the correction as an assisted solution. I dont want any of the points just to highlight the correction.
Random Solutions
Find cmd failing with "find: paths must precede expression" however works on command line.
Spell Check solution from ijafferr for Access Field. Spell Check window is sometimes beneath main window
Scroll Bar on Dynamic Text Box
Sharepoint 2003 query and report possibilities
SMTP messages stuck in Exchange Queue. Suspect DNS issues.
Need help with global variables in AS 3
Imaging a 2003 Server..What to use?
how to renew or reissue cert on exchange server for owa and rpc over http
SQL 2000 database - How to shrink and what to expect.
DSN Default Database Question