Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.misc -> Re: PL/SQL Question
Arthur Merar wrote
end loop;
>I do not understand what the parameters are for when the c2 cursor is
>defined.
Your example first loops over cursor c1. Each returned row of that cursor is used as input for cursor c2. So, you need parameters in c2.
>Also, I do not understand the parameters when the c2 cursor
>is opened.
I guess you do not understand the %type part? It is a good way to copy the declaration of of a table. Say, I have a column defined as number(2) and change that to a number(4,2) some time later. When using tablename.columnname%type I do not have to change all variables in my code that are supposed to store data of this column. Their definitions will be exactly as the table definition.
>Please respond via e-mail.
I don't see why. Would you ever you feel replies are missing, then check out http://www.dejanews.com
Arjan. Received on Sun Feb 28 1999 - 02:01:33 CST