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: Question on indexed nullable column

RE: Question on indexed nullable column

From: <martyn.r.baker_at_uk.pwcglobal.com>
Date: Fri, 12 May 2000 09:50:55 +0100
Message-Id: <10495.105475@fatcity.com>


--0__=5Y0BVYwurKYBRS3lLnTFQK5shr3kiHM3mfPNVHbjE9R4P31Ty8LVHo4Z
Content-type: text/plain; charset=us-ascii Content-Disposition: inline

Sorry to correct you but if the column contains a null value, it will not be referenced by the index. As mentioned in an earlier posting, use a default value for the nullable column for it to be stored in the index. Martyn

                                                                  
 (Embedded                                                        
 image moved   awaisb_at_paktel.com                                  
 to file:      12/05/2000 08:55                                   
 pic01964.pcx)                                                    
                                                                  



Please respond to ORACLE-L_at_fatcity.com

To: Multiple recipients of list ORACLE-L <ORACLE-L_at_fatcity.com> cc:
Subject: RE: Question on indexed nullable column

If an index is created on nullable column, it will not create any problem and put the null value at first place of the index. I think if you make any query against that table for null values than it might be fatser.

-----Original Message-----

Sent: Friday, May 12, 2000 3:17 AM
To: Multiple recipients of list ORACLE-L

Hi:

In Oracle database, if I do:

create table T1 (

     C1  number(9) NOT NULL,
     C2  number(9));

create index INDX1 on T1(C1);
create index INDX2 on T1(C2);

Is here a performance penalty, or other problems if an indexed column is nullable (such as C2 here)? If yes, why?

Thanks.



Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com

--

Author: Guang Mei
  INET: zlmei_at_hotmail.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).
--

Author:
  INET: awaisb_at_paktel.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).

The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. If you received this in error, please contact the sender and delete the material from any computer.

--0__=5Y0BVYwurKYBRS3lLnTFQK5shr3kiHM3mfPNVHbjE9R4P31Ty8LVHo4Z

Content-type: text/plain; name="pic01964.txt"
Content-Disposition: attachment; filename="pic01964.txt"
Content-transfer-encoding: 7bit

<binary content removed -- do not send binaries to the list> Received on Fri May 12 2000 - 03:50:55 CDT

Original text of this message

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