Re: can a PL/SQL procedure return mul..

From: Frank Greene <74200.427_at_CompuServe.COM>
Date: 6 Dec 1994 01:10:38 GMT
Message-ID: <3c0dme$kt9$1_at_mhade.production.compuserve.com>


Isn't this a basic definition of a cursor? For example ---

DECLARE

     CURSOR C1 IS
            SELECT field1, field2 
            FROM   the_table
            WHERE  some_condition_statement;

     l_field1  VARCHAR2(10);
     l_field2  VARCHAR2(10);
BEGIN
     OPEN c1;
     LOOP
           FETCH c1 into l_field1, l_field2;
           exit when c1%notfound;

           (do something with each returned record)
     END LOOP;
     CLOSE c1;

END;

/ Received on Tue Dec 06 1994 - 02:10:38 CET

Original text of this message