Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Mailing Lists -> Oracle-L -> Re: How to use both nvl and index access without creating functional index ?
Did temporary thing by appplying nvl only on nullable columns, which are no=
t=20
that many. I like Tim's solution, will test it.=20
Thanks all.rm.
On 5/13/05, Tim Gorman <tim_at_evdbt.com> wrote:
> Ranko,
>=20
> If you want to use an index, then you must have a non-null value in hand =
to
> use. Therefore, you just use the index with a predicate like "COLUMN_NAM=
E =3D
> :b1".
>=20
> If you don't have a non-null value in hand to use with that column, then =
you
> should use other criteria or just do a FULL table scan...
>=20
>=20
>=20
>=20
>=20
>=20
>=20
>=20> > http://www.freelists.org/webpage/oracle-l
> > Hi,=3D20
> > I have to use NVL function ( or similar ) in where clause.=3D20
> > I need to have column accessed via index.=3D20
> > Creation of functional indexes on nvl(column_name ) can not be done
> > for all columns
> > ( political and other reasons ).=3D20
> >
> > Is there a way ?=3D20
> >
> > Regards, Ranko.
> > --
>=20
-- http://www.freelists.org/webpage/oracle-lReceived on Sat May 14 2005 - 08:21:42 CDT
![]() |
![]() |