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 -> Re: PL/SQL Question

Re: PL/SQL Question

From: Arjan van Bentem <avbentem_at_DONT-YOU-DAREdds.nl>
Date: Sun, 28 Feb 1999 09:01:33 +0100
Message-ID: <36d8f7e2$0$14689@newton>


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

Original text of this message

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