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 -> Cursor For Loops

Cursor For Loops

From: Richard Fairbairn <r.fairbairn_at_zetnet.co.uk>
Date: Fri, 22 May 1998 11:43:01 +0100
Message-ID: <1998052211430176740@zetnet.co.uk>


I understand that a cursor for loop is a loop transaction that automatically opens a cursor, fetches its contents into a special record structure and then closes the cursor. However, can someone tell me (using the following example) how the loop determines where it will terminate. (I.e., what is the relevance of C1_RECORD).

Here we go...

DECLARE
  CURSOR C1
  IS SELECT R.SURNAME, R.CURSAL, R.BORN FROM RECRUIT R; BEGIN
  FOR F1 IN F1_RECORD LOOP


         IF F1_RECORD.SURNAME = 'WHATEVER'
         THEN and so on and so on ...

  END LOOP; END; thanks v. much

Best regards

R.W. Fairbairn Received on Fri May 22 1998 - 05:43:01 CDT

Original text of this message

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