I'm sure you're already aware of this, but the substr/instr is not as complicated as it looks since instr takes 4 parms, the 4th of which makes cycling through fields 1=>8 easy.
hth connor --- "Deshpande, Kirti" <[EMAIL PROTECTED]> wrote: > Stephane, > Thanks. > Nice idea :) > I will pass on this idea to them... Hope it flies.. > > > Looks like either a function or a view around the > 'ugly' code is the only > choice. > > - Kirti > > > > -----Original Message----- > Sent: Wednesday, May 29, 2002 3:32 PM > To: Multiple recipients of list ORACLE-L > > <Snip> > > > Kirti, > > I had a vague remembrance of something which > might have been helpful > in dbms_utility but the closer you get to is a > comma_to_table() > procedure. Even without your reluctance to > REPLACE(), you would be lucky > if your data could bear this kind of transformation. > Well, its a bit like sweeping dirt under the > carpet, but I think that > a function > getfield(string in varchar2, pos in > number, separator > in char) > return varchar2; > full of substr and instr should make the upper > level query more legible > ... > > > Regards, > > Stephane Faroult > Oriole Software > -- > -- > Please see the official ORACLE-L FAQ: > http://www.orafaq.com > -- > Author: Deshpande, Kirti > INET: [EMAIL PROTECTED] > > Fat City Network Services -- (858) 538-5051 FAX: > (858) 538-5051 > San Diego, California -- Public Internet > access / Mailing Lists > -------------------------------------------------------------------- > To REMOVE yourself from this mailing list, send an > E-Mail message > to: [EMAIL PROTECTED] (note EXACT spelling of > 'ListGuru') and in > the message BODY, include a line containing: UNSUB > ORACLE-L > (or the name of mailing list you want to be removed > from). You may > also send the HELP command for other information > (like subscribing). ===== Connor McDonald http://www.oracledba.co.uk http://www.oaktable.net "Some days you're the pigeon, some days you're the statue" __________________________________________________ Do You Yahoo!? Everything you'll ever need on one web page from News and Sport to Email and Music Charts http://uk.my.yahoo.com -- Please see the official ORACLE-L FAQ: http://www.orafaq.com -- Author: =?iso-8859-1?q?Connor=20McDonald?= INET: [EMAIL PROTECTED] Fat City Network Services -- (858) 538-5051 FAX: (858) 538-5051 San Diego, California -- Public Internet access / Mailing Lists -------------------------------------------------------------------- To REMOVE yourself from this mailing list, send an E-Mail message to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing).