Suppose I have the following databases:
T1 (a, b, c), T2 (a, c, d)
And I want to make a block in the following way:
declare cursor info is select b, d from T1, T2 where T1.a = T2.a and T1.c = T2.c begin open info for temp in info (x) dbms_output.put_line (temp.b || temp.d); end loop close info end;
Is it even legal to run on variables within the cursor?!? Because I know there is no point in making a for loop when there is a cursor .. but does it compile...?
Thank you very much:)