Re: Dynamic PL/SQL -> REF CURSOR in a procedure

From: Georges Ko <gko_at_gko.net>
Date: 16 Aug 2000 10:55:57 +0800
Message-ID: <ybyem3psyma.fsf_at_gko.net>


"Klaus Zeuch" <KZeuchnospam_at_hotmail.com> writes:

> In Oracle 8i it can be done (see
> http://osi.oracle.com/wa/ask/owa/ask_tom_pkg.display?p_dispid=479021456587);
> in 7.3 I would guess that it's not possible.

    Oh, by the way, can I write something like:

     IF ...
        OPEN cursor FOR
           SELECT ...
           WHERE ...
     ELSIF ...
        OPEN cursor FOR
           SELECT ...
           WHERE ...
     ELSIF ...
        OPEN cursor FOR
           SELECT ...
           WHERE ...
     ELSIF ...
        OPEN cursor FOR
           SELECT ...
           WHERE ...
     END IF;

     where the only differences would be in the WHERE parts in a
simpler way ?

    Thanks. Received on Wed Aug 16 2000 - 04:55:57 CEST

Original text of this message