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

Home -> Community -> Mailing Lists -> Oracle-L -> RE: BITAND function???

RE: BITAND function???

From: Thomas L. Harleman <tharleman_at_iquest.net>
Date: Thu, 3 Aug 2000 15:46:10 -0500
Message-Id: <10578.113794@fatcity.com>


I've never used it. But having worked in C and Forth, I'd say it is ANDing the bits between i.property and the number 4. The bits for the number 4 are 0100. The bit values are 8,4,2,1. BITAND would compare the 3rd bit. If the third bit is set, then the function would return TRUE. If the 3rd bit is not set then the function would return FALSE. Therefore, in a 4 bid number only 4, 5, 6, 7, 12, 13, etc. would qualify.

Tom Harleman
11080 Willowmere Dr.
Indianapolis, IN 46280
317-844-2884 Home
317-843-9122 Home Office

-----Original Message-----
From: root_at_fatcity.com [mailto:root_at_fatcity.com]On Behalf Of Sandeep Kurliye
Sent: Thursday, August 03, 2000 1:16 PM
To: Multiple recipients of list ORACLE-L Subject: BITAND function???

Hi,

Any idea, what BITAND function does?

Following is a query which is used to list the names of all reverse key indexes:

SVRMGR> SELECT o.object_name

2> FROM dba_objects o
3> WHERE owner='SCOTT'
4> AND o.object_id IN (SELECT i.obj#
5> FROM ind$ i
6> WHERE BITAND(i.property,4) = 4);

OBJECT_NAME



ORD_ORD_NO_IDX
1 row selected.

TIA, Sandeep.
Riyadh, Saudi Arabia.

--
Author: Sandeep Kurliye
  INET: Sandeep.Kurliye_at_almarai.com

Fat City Network Services    -- (858) 538-5051  FAX: (858) 538-5051
San Diego, California        -- Public Internet access / Mailing Lists
--------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message
to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).
Received on Thu Aug 03 2000 - 15:46:10 CDT

Original text of this message

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