Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.misc -> decimal to binary masks

decimal to binary masks

From: Steve A <spectre_at_hkstar.com>
Date: Wed, 9 Feb 2000 12:16:04 +0800
Message-ID: <1e5qhum.1116aws1u15z3gN@[192.168.2.50]>


Hi,
I want to test for a given bit being set. for example a number field being used as flag storage.

0=no lock
1=invoiced_locked
2=shipping_locked
4=packing_locked

etc

if bitset(flag,2)
then
.....
else
XXXXX
endif

I don't want to have to use UTL_RAW, since it seems to only work on varchar2 & rawtypes

any routines out there

steve Received on Tue Feb 08 2000 - 22:16:04 CST

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US