ACCEPT

Syntax

ACCEPT <variable> [PROMPT <text>] [DEFAULT <text>];

Description

Receives the value of the <variable> variable from the user as a keyboard input. If you enter the prompt parameter, the specified <text> text will be output beforehand. The value submitted through the <default> parameter is taken as the requirement if the user simply presses the return button.

Examples

SQL_EXA> accept ok prompt "Everything ok? " default "maybe";
Everything ok? yes
SQL_EXA>