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: SQL should work!!?? But it doesn't.

Re: SQL should work!!?? But it doesn't.

From: Niall Litchfield <n-litchfield_at_audit-commission.gov.uk>
Date: Thu, 8 Jan 2004 14:41:40 -0000
Message-ID: <3ffd6c23$0$13348$ed9e5944@reading.news.pipex.net>


"Mark C. Stock" <mcstockX_at_Xenquery .com> wrote in message news:J7adnUofN4bhy2CiRVn-sw_at_comcast.com...
> + 2 cents:
>
> the LIKE syntax would be preferable (assuming APNNUM is a varchar2, which
it
> seems to be if you're using SUBSTR to display it) since it would allow the
> optimizer to use an ordinary index -- the SUBSTR syntax would require a
> matching function-based index

absolutely, missed that the start position was the beginning of the field.

-- 
Niall Litchfield
Oracle DBA
Audit Commission UK
Received on Thu Jan 08 2004 - 08:41:40 CST

Original text of this message

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