SQL Plus - guest user with: "do you want to continue?

I am running a script, PL/SQL using SQL more. In the middle of the script, I would essentially like to have the following logic:

Request to the user: "do you want to continue?
IF the user types 'Y', continue with script (run update instructions)
ELSE IF
types user 'n' end script

What is the best way to do it? Thank you!

You cannot ask for PL/SQL code. The PL/SQL code runs in a process on the database server and can interface with the end front of the customer.
You must use a front-end interface for this apart from any PL/SQL code. SQL * Plus offers a basic intervention, but you would be better using a good front-end such as Application Express, .NET, Java etc. or maybe even a Windows command/batch file.

Tags: Database

Similar Questions

Maybe you are looking for