Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Data Bases > Oracle Miscellaneous > most idiomatic ...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 9 Topic 6880 of 6990
Post > Topic >>

most idiomatic way to iterate over an associative array?

by mh@[EMAIL PROTECTED] May 7, 2008 at 04:51 AM

This is what I'm doing now... is there a better way?
It would be great if there were some construct such
as 'for i in x begin ... end;'

    i := x.first;
    loop
        dbms_output.put_line(i);
        exit when i = x.last;
        i := x.next(i);
    end loop;

Many TIA!
Mark


-- 
Mark Harrison
Pixar Animation Studios
 




 9 Posts in Topic:
most idiomatic way to iterate over an associative array?
mh@[EMAIL PROTECTED]   2008-05-07 04:51:11 
Re: most idiomatic way to iterate over an associative array?
Robert Klemme <shortcu  2008-05-07 01:07:27 
Re: most idiomatic way to iterate over an associative array?
Mark D Powell <Mark.Po  2008-05-07 09:28:47 
Re: most idiomatic way to iterate over an associative array?
Urs Metzger <urs@[EMAI  2008-05-08 20:02:58 
Re: most idiomatic way to iterate over an associative array?
"stephen O'D" &  2008-05-07 13:37:18 
Re: most idiomatic way to iterate over an associative array?
Mark D Powell <Mark.Po  2008-05-07 17:19:04 
Re: most idiomatic way to iterate over an associative array?
Mark D Powell <Mark.Po  2008-05-08 11:01:37 
Re: most idiomatic way to iterate over an associative array?
"stephen O'D" &  2008-05-09 08:57:11 
Re: most idiomatic way to iterate over an associative array?
Mark D Powell <Mark.Po  2008-05-10 07:08:54 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan13V112 Sun Jul 6 17:09:32 CDT 2008.