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: Rahul <rahul_ocp8i_at_hotmail.com>
Date: 18 Jun 2003 12:23:50 -0700
Message-ID: <f8af2f95.0306181123.47df961@posting.google.com>


YC_CHOICE_IS_MY_CHOICE ===> YC_CIMC Assuming you have four underscores in your txt

select substr(txt,1,instr(txt,'_')-1) || substr(txt,instr(txt,'_')+1 ,1)||

              substr(txt,instr(txt,'_',2)+1,1) ||substr(txt,instr(txt,'_',3)+1,1)
		|| substr(txt,instr(txt,'_',4)+1,1)

from t1 Received on Wed Jun 18 2003 - 14:23:50 CDT

Original text of this message

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