Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.misc -> Looping through attributes

Looping through attributes

From: Sean Byrne <byrne_sean_spamtrap_at_hotmail.com>
Date: Fri, 24 Sep 2004 15:23:53 +0100
Message-ID: <cj1aju$ame$1$8302bc10@news.demon.co.uk>


Hi,

I'm trying to write some PL-SQL that manipulates a set of attributes with a similar name.

What's the correct way of writing

FOR i in 0..5
loop
ls_att = '[ATTRIBUTE ' || i || ']'
...

so that it returns the value in the database for ATTRIBUTE 1 etc ratrher than assigning the string [ATTRIBUTE 1} etc to ls_att?

Cheers,
Sean Received on Fri Sep 24 2004 - 09:23:53 CDT

Original text of this message

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