Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

accept a variable in sqlplus

Status
Not open for further replies.

ManjulaMadhu

Programmer
Jan 7, 2003
85
SG
Hi,

I have a script that accepts a variable and then some queries with this variable.

eg:
set pages 0
set feedback off

accept new prompt seqid

Select count(*) from T_LE_PROFILE Where le_id >= &new
and rownum < 5;

Select count(*) from T_LE_ADDR Where le_id >= &new and rownum < 5;

Now, when the script is run , I get the output as old, new values of the select with the varaiable values and the output.
How can I just get the output of the query surpassing the old and new values ?

Thanx in advance,
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top