Home » RDBMS Server » Server Administration » Re: Bitwise AND in oracle
Re: Bitwise AND in oracle [message #50861] Thu, 11 April 2002 08:50
Hans
Messages: 42
Registered: September 2000
Member
Of course, if it's just one bit you need, there's a quicker way:
say a is your number, b is 1,2,4,8,16,32,...:

Then the bit you need is given by:
mybit := (b = MOD(a,b*2)-MOD(a,b));
Previous Topic: Server Configuration Estimation(Urgent)
Next Topic: Re: Oracle Installation error on Sco Unixware
Goto Forum:
  


Current Time: Sun Sep 08 13:33:19 CDT 2024