Database Administration (MOSC)

MOSC Banner

Condition the script execution on the user's choice from a query result

edited Feb 14, 2010 9:58PM in Database Administration (MOSC) 6 commentsAnswered
  Hi,

Sorry if the title is not clear, let me explain.

I'm creating a SQL*Plus script where I want the user to enter a value which will be used in a query (as the pattern in the LIKE condition).

Then, here is the conditional processing I'd like to run:

If the query returns no rows, then display a message indicating the user that there's nothing to process and exit.

If the query returns several rows, then display the list of rows and prompt the user for choosing one value in the list and process with the rest of the script.

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

Don't have a My Oracle Support Community account? Click here to get started.

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center