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: best way to loop over string value character by character

Re: best way to loop over string value character by character

From: Mark D Powell <Mark.Powell_at_eds.com>
Date: 2 Sep 2005 06:20:06 -0700
Message-ID: <1125667206.850576.128140@g49g2000cwa.googlegroups.com>


If you potentially want to look at each and every column position of a variable then using substr in a loop is pretty much the only way in pl/sql since there is no pointer datatype.

Several of the provided string functions can perform variable column scanning operations such as instr which can identify the column location where specified conditions are true.

Through use of the substr, instr, replace, transform, and the length functions you can manipulate character values pretty much as needed.

HTH -- Mark D Powell -- Received on Fri Sep 02 2005 - 08:20:06 CDT

Original text of this message

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