Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.misc -> Re: Querying a number column.

Re: Querying a number column.

From: Sybrand Bakker <gooiditweg_at_sybrandb.demon.nl>
Date: Fri, 24 Jan 2003 07:41:10 +0100
Message-ID: <4un13vokt4pj7cdd3o3ee40fqra7gn71jp@4ax.com>


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.

BECAUSE of the type conversion.
The query is silently transformed into
to_char(column) = '<hardcoded numeric literal>'

left hand side of a where clause function: NO index.

Sybrand Bakker, Senior Oracle DBA

To reply remove -verwijderdit from my e-mail address Received on Fri Jan 24 2003 - 00:41:10 CST

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US