Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.server -> Re: Unique index not being used, up to date stats
"Ben" <balvey_at_comcast.net> writes:
> On Jan 26, 10:07 am, Robert Klemme <shortcut..._at_googlemail.com> wrote:
Hello Ben,
I just want to add my wild guess here.
Are you sure that wadoco is a number column? The behavior you describe
sounds like looking up numeric values in a varchar2 column.
When you use bind variables in explain it assumes the right data type but
giving numeric literals doesn't use the index. When using bind variables from
application you can set the data type of these to numeric so that the index
isn't used either.
Hope that helps,
Lothar
-- Lothar Armbrüster | lothar.armbruester_at_t-online.de Hauptstr. 26 | 65346 Eltville |Received on Fri Jan 26 2007 - 11:04:04 CST