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

Home -> Community -> Usenet -> c.d.o.server -> Re: Sqlplus Question

Re: Sqlplus Question

From: Peter H. Larsen <plarsen_at_dc.dynares.com>
Date: Tue, 16 Jun 1998 14:09:43 -0400
Message-ID: <3586B4E7.7DFD52CD@dc.dynares.com>


Hi,
Declare a variable in SQLPLUS, select into this variable when selecting from the sequence, and use this variable when refering to the value.

Phill Weiss wrote:
>
> Is it possible to make a sqlplus query for the nextval of a sequence in one
> query, store the result in a variable, and use the variable in a subsequent
> sqlplus query? I don't want to have to use pl/sql to do this, only sqlplus.
> If this is possible, please enlighten me as to how I can go about it. Thanks.
Received on Tue Jun 16 1998 - 13:09:43 CDT

Original text of this message

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