Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Mailing Lists -> Oracle-L -> RE: Go NULL values into an index?
This message is in MIME format. Since your mail reader does not understand
this format, some or all of this message may not be legible.
------_=_NextPart_001_01C079F5.AFB88DB0
Content-Type: text/plain;
charset="iso-8859-1"
Hi,
If it is a not null column, you cannot store null now.
If you are storing null values in the column on which an index is defined,
the index will ignore the records with such instances. So checking for nulls
in your query will not use an index.
Thanks,
Amar Kumar Padhi,
Software Consultant
-----Original Message-----
From: Haunschmidt Andreas VASL/FAS
[mailto:Andreas.Haunschmidt_at_voest.co.at]
Sent: Tuesday, January 09, 2001 7:50 AM
To: Multiple recipients of list ORACLE-L
Subject: Go NULL values into an index?
Hi Board Members!
Maybe a often posed question,
but I dare to ask you directly:
If there is a not null column named 'c1' and this column is part of an index
Andreas
Andreas
--
Please see the official ORACLE-L FAQ: http://www.orafaq.com
--
Author: Haunschmidt Andreas VASL/FAS
INET: Andreas.Haunschmidt_at_voest.co.at
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).
------_=_NextPart_001_01C079F5.AFB88DB0
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN"> <HTML> <HEAD> <META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =charset=3Diso-8859-1">
<TITLE>RE: Go NULL values into an index?</TITLE> </HEAD> <BODY>
<P><FONT SIZE=3D2>Hi,</FONT>
<BR><FONT SIZE=3D2>If it is a not null column, you cannot store null = now.</FONT> <BR><FONT SIZE=3D2>If you are storing null values in the column on =which an index is defined, the index will ignore the records with such = instances. So checking for nulls in your query will not use an = index.</FONT></P>
<P><FONT SIZE=3D2>Thanks,</FONT> <BR><FONT SIZE=3D2>Amar Kumar Padhi,</FONT> <BR><FONT SIZE=3D2>Software Consultant</FONT> </P> <BR> <P><FONT SIZE=3D2>-----Original Message-----</FONT><BR><FONT SIZE=3D2>From: Haunschmidt Andreas VASL/FAS</FONT> <BR><FONT SIZE=3D2>[<A =
<BR><FONT SIZE=3D2>Sent: Tuesday, January 09, 2001 7:50 AM</FONT> <BR><FONT SIZE=3D2>To: Multiple recipients of list ORACLE-L</FONT> <BR><FONT SIZE=3D2>Subject: Go NULL values into an index?</FONT> </P> <BR> <P><FONT SIZE=3D2>Hi Board Members!</FONT> <BR><FONT SIZE=3D2> Maybe a often posed question,</FONT><BR><FONT SIZE=3D2> but I dare to ask you directly:</FONT> </P>
<P><FONT SIZE=3D2> If there is a not null column named 'c1' and = </FONT> <BR><FONT SIZE=3D2> this column is part of an index </FONT> <BR><FONT SIZE=3D2> - eg.: create (unique) index idx1 on =t1(c1,c2...) -</FONT>
<BR><FONT SIZE=3D2> select * from t1 where c1 is null;</FONT> <BR><FONT SIZE=3D2> or any other select statement </FONT> <BR><FONT SIZE=3D2> can make use of the index ?</FONT> <BR><FONT SIZE=3D2> Thanks in advance!</FONT> </P> <P><FONT SIZE=3D2> Andreas</FONT> <BR><FONT SIZE=3D2> Andreas</FONT><BR><FONT SIZE=3D2>-- </FONT>
<BR><FONT SIZE=3D2>-- </FONT> <BR><FONT SIZE=3D2>Author: Haunschmidt Andreas VASL/FAS</FONT> <BR><FONT SIZE=3D2> INET: Andreas.Haunschmidt_at_voest.co.at</FONT> </P>
<P><FONT SIZE=3D2>Fat City Network Services -- (858) =
538-5051 FAX: (858) 538-5051</FONT>
<BR><FONT SIZE=3D2>San Diego, =
California -- Public Internet =
access / Mailing Lists</FONT>
<BR><FONT =
SIZE=3D2>---------------------------------------------------------------=-----</FONT>