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

Home -> Community -> Usenet -> c.d.o.server -> Re: Find last occurance of character

Re: Find last occurance of character

From: DA Morgan <damorgan_at_psoug.org>
Date: Wed, 01 Jun 2005 17:21:16 -0700
Message-ID: <1117671545.867964@yasure>


NetComrade wrote:
> is there a way (using oracle functions) to find last occurance of
> character w/o writing a recursive function?
>
> e.g. select XXXX('ooozo','o') from dual
> would return 5
>
> Thanks.
> .......
> We use Oracle 8.1.7.4 and 9.2.0.5 on Solaris 2.7 boxes
> remove NSPAM to email

Assuming your definition of "last" is Euro-centric": INSTR and search from the right to left.

-- 
Daniel A. Morgan
http://www.psoug.org
damorgan_at_x.washington.edu
(replace x with u to respond)
Received on Wed Jun 01 2005 - 19:21:16 CDT

Original text of this message

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