Description:
The accept
command can be used to prompt for a value for a substitution variable. When no
prompt is supplied it will display a message to enter a value for
variable. If the variable already exists the old value will be shown so
the user can change it.
Examples:
Display a message to enter an employee number before getting
the data for that employee:
ACCEPT myempno PROMPT 'Enter an employee number'; select * from emp where empno =
&myempno;
Display a message to enter a department number before getting the department
data. The value for department should be preset to 20, the user can change it at
the prompt:
DEFINE mydeptno = 20; ACCEPT mydeptno PROMPT 'Enter the
department number'; select * from dept where deptno =
&mydeptno;
Copyright (C) 1995-2007 Linker IT
Software BV. All Rights Reserved. Oracle is a registered trademark of
Oracle corporation. Excel and Office are registered trademarks of
Microsoft corporation. Other names appearing on the site may be trademarks
of their respective owners. Software,
files, documents, articles and other material are provided
"as is" and without warranties as to performance or mechantability or
any other warranties whether expressed or implied. No
warranty of fitness for a particular purpose is offered.
sitemap