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: PL/SQL substr(instr oracle

Re: PL/SQL substr(instr oracle

From: Nuno Souto <wizofoz2k_at_yahoo.com.au>
Date: 19 Jun 2003 18:09:50 -0700
Message-ID: <73e20c6c.0306191709.28933eb3@posting.google.com>


wizofoz2k_at_yahoo.com.au (Nuno Souto) wrote in message news:<73e20c6c.0306191448.217976db_at_posting.google.com>...
>
> this is better than my previous attempt:
>

<groan>

Apologies:

select substr('&STR',1,instr('&STR','_')-1|| translate(initcap(replace(substr('&STR',instr ('&STR','_')),'_',' ')),' abcdefghijklmnopqrstuvwxyz','_') from dual;

<note the subtle difference...>

Cheers
Nuno Souto
wizofoz2k_at_yahoo.com.au.nospam Received on Thu Jun 19 2003 - 20:09:50 CDT

Original text of this message

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