Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.server -> Re: PL/SQL substr(instr oracle
"Eric Parker" <eric.parker.spamless_at_virgin.net> wrote in message
news:qzAJa.2327$yw5.31172_at_newsfep4-glfd.server.ntli.net...
>
> I don't believe you need the 'replace', but then there was no spec.
>
> select substr('&STR',1,instr('&STR','_'))||
> translate(initcap(substr('&STR',instr(
> '&STR','_'))),'abcdefghijklmnopqrstuvwxyz'||'_',' ')
> from dual;
>
Well done!
-- Cheers Nuno Souto wizofoz2k_at_yahoo.com.au.nospamReceived on Mon Jun 23 2003 - 06:00:27 CDT