My IVW machine seems to be powered down at the moment and there's no one in the office to switch it on, so I'm only guessing this will work with IVW.
Ingres SQL allows you to do the calculations to get at individual bits albeit indirectly. If you have an INTEGER column called map, and you count bits from 0 starting at the low-order end, you can extract the value of bit 3 (i.e. the fourth bit) using ...WHERE mod(map/2**3,2)=1. If you want rows where the fourth bit and the twelth bit (bit 11) are set, you can use ...WHERE mod(map/2**3,2)=1 AND mod(map/2**11,2)=1, and so on.
__________________
Roy Hann
UK Ingres User Association Conference 2011 will be on Tuesday June 7, 2011. Mark the date in your diary.
|