Hey,
I'd like to do something like this with PL/SQL:
for ACCOUNT in account_cursor
loop
for related_data in (select something from table where some_column = ACCOUNT.column)
loop
endloop;
endloop;
(caps for emphasis)
I'm away from my dev environment so I can't test this out, so please ignore any minor syntactical errors. I am more concerned about whether I can use the variables in this way.
EDIT:
An explination of what I'm trying to achieve. I have two huge tables: accounts and log. I want to get the log data for a specific few accounts. Because of the number of records a straight select/join is extremely slow. I am trying to speed up the proccess by first selecting the accounts I am interested in and then joining these to the log table. Any advice would be appreciated.