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: JHY <jhy_at_earthling.net>
Date: Mon, 29 Jun 1998 20:24:38 -0400
Message-ID: <6n9b7u$dpg@bgtnsc01.worldnet.att.net>


This is how you do this:

SQL> COLUMN TODAY NEW_VALUE DAY
SQL> select sysdate today from dual;

The variable &DAY now has the value returned for SYSDATE and can be used elsewhere:

SQL> select name from tab where rec_date = '&DAY';

HTH 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 Mon Jun 29 1998 - 19:24:38 CDT

Original text of this message

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