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: Jeremy <newspostings_at_hazelweb.co.uk>
Date: Thu, 2 Jun 2005 11:12:44 +0100
Message-ID: <MPG.1d08ebf42ed2d8eb989ea5@news.individual.net>


In article <429e2e09.1175744687_at_localhost>, NetComrade says...
> 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
>
>

SELECT INSTR('ooozo','o',-1) FROM dual;

-- 

jeremy
Received on Thu Jun 02 2005 - 05:12:44 CDT

Original text of this message

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