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: Andy Hassall <andy_at_andyh.co.uk>
Date: Wed, 01 Jun 2005 23:04:03 +0100
Message-ID: <u5cs91tse8ido6t9fdv0udb6avclskr41n@4ax.com>


On Wed, 01 Jun 2005 21:54:47 GMT, netcomradeNSPAM_at_bookexchange.net (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

 Use INSTR.

http://download-west.oracle.com/docs/cd/B14117_01/server.101/b10759/functions058.htm#SQLRF00651

-- 
Andy Hassall / <andy@andyh.co.uk> / <http://www.andyh.co.uk>
<http://www.andyhsoftware.co.uk/space> Space: disk usage analysis tool
Received on Wed Jun 01 2005 - 17:04:03 CDT

Original text of this message

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