Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.tools -> Re: PL/SQL variable in a cursor as partition name? Oracle 8.1.7

Re: PL/SQL variable in a cursor as partition name? Oracle 8.1.7

From: Frank <franjoe_at_frisurf.no>
Date: Wed, 27 Jun 2001 22:13:11 +0200
Message-ID: <p8r_6.605$Jp5.8590@news1.oke.nextra.no>

Hi!

Could you use something like:

DECLARE
  TYPE type_reference_cursor IS REF CURSOR;   l_cursor type_reference_cursor;
BEGIN
  OPEN l_cursor FOR 'SELECT * FROM '||dynamic_string||';'    FETCH......
   CLOSE l_cursor;
END;
/

Frank Received on Wed Jun 27 2001 - 15:13:11 CDT

Original text of this message

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