 by querying the <A
HREF="view-pg-cursors.html"
><TT
CLASS="STRUCTNAME"
>pg_cursors</TT
></A
>
    system view.
   </P
></DIV
><DIV
CLASS="REFSECT1"
><A
NAME="AEN74988"
></A
><H2
>Examples</H2
><P
>   To declare a cursor:
</P><PRE
CLASS="PROGRAMLISTING"
>DECLARE liahona CURSOR FOR SELECT * FROM films;</PRE
><P>
   See <A
HREF="sql-fetch.html"
>FETCH</A
> for more
   examples of cursor usage.
  </P
></DIV
><DIV
CLASS="REFSECT1"
><A
NAME="AEN74993"
></A
><H2
>Compatibility</H2
><P
>   The SQL standard says th