Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Mailing Lists -> Oracle-L -> RE: Question on indexed nullable column
--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.
--
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 Liststo: 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).
--------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message
Fat City Network Services -- (858) 538-5051 FAX: (858) 538-5051 San Diego, California -- Public Internet access / Mailing Liststo: 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).
--------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message
--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
![]() |
![]() |