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 Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Customising Temporary Substitution variable - &

Status
Not open for further replies.

Analyst2004

Technical User
Jan 5, 2004
12
US
A very basic question about SQL , about Temporary Substitution Variable that is '&' Ampersand

Whenever I use '&' to accept input from user before running a sql statement,
I get a standard prompt. See Eg. below.

SQL> Select * from Emp where empno = '&eno' ;

'Enter value for eno:'


Is there are way of customizing this prompt. Are there any environmental settings that will help me change this
standard prompt ? Any functions ? Commands ?

I know there is a 'PROMPT' command, but I am just using a SQL statement and not a script.
I am trying to spool the output from the statements where this "standard" message is on the first line, I would like to change it
to make it more meaningful.

Any suggestions ??
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top