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 -> more than one number from sequence

more than one number from sequence

From: Volker Apelt <gq437x_at_yahoo.de>
Date: 23 Oct 2002 16:57:00 +0200
Message-ID: <lgsmyx2og3.fsf@mu.biosolveit.local>

I'm looking for a way to retrieve more than one id per SQL statement/OCI aall from a sequence.

I defined a sequence, a package header and a package body for retrival of many sequence numbers with on sql statement by OCI. But the

Compiling the package body in sqlplus gives these errors. PLS-00306: wrong number or types of arguments in call to 'EXTEND' and
PLS-00437: FORALL bulk index cannot be used in RETURNING clause

How should I rewrite draw_N_ids() ?

Thank you,

Volker

Errors for PACKAGE BODY TEST_ON_SEQUENCES:

LINE/COL ERROR

-------- -----------------------------------------------------------------
8/9      PLS-00306: wrong number or types of arguments in call to 'EXTEND'
8/9      PL/SQL: Statement ignored
10/12    PL/SQL: SQL Statement ignored

10/48 PLS-00437: FORALL bulk index cannot be used in RETURNING clause 10/55 PL/SQL: ORA-00904: invalid column name SQL> Received on Wed Oct 23 2002 - 09:57:00 CDT

Original text of this message

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