to retrieve
   a small number of rows at a time out of a larger query.
   After the cursor is created, rows are fetched from it using
   <A
HREF="sql-fetch.html"
>FETCH</A
>.
  </P
><DIV
CLASS="NOTE"
><BLOCKQUOTE
CLASS="NOTE"
><P
><B
>Note: </B
>    This page describes usage of cursors at the SQL command level.
    If you are trying to use cursors inside a <SPAN
CLASS="APPLICATION"
>PL/pgSQL</SPAN
>
    function, the rules are different &mdash;
    see <A
HREF="plpgsql-cursors.html"
>Section 40.7</A
>.
   <