Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.misc -> Re: Querying a number column.
sorry sybrand, but it is not true
(at least I checked it on 9.x):
it is implicitly converted to
column = to_number('<hardcoded numeric literal>'),
where the index can be used
(and actually is, as far as explain plan tells me)
when I hardcode a NON-numeric-literal instead, I get
FEHLER in Zeile 1:
ORA-01722: Ung³ltige Zahl
,
from which U also can conclude that the (internal) conversion to_number fails.
matthias
Sybrand Bakker wrote:
> On Fri, 24 Jan 2003 00:56:13 -0500, "Anurag Varma" <avdbi_at_hotmail.com>
> wrote:
>
>
>>why would the index be ignored? >>I don't think so. Though I agree about the type conversion.