oracle - How to create a menu in SQLPlus or PL/SQL -


I have several scripts that I would like to start with the menu presented to the SQLPlus user like something:
< Br /> Please make a selection:
1: Unify the script
2: B script.
3: Do the script.

I need a point in the right direction, not the quick answer.

Here's a SQL Plus script to do this:

  Prompt Please make a selection: Prompt 1: Prompt 2 prompt a script: Prompt script 3: Accept script acceptance selection "Enter option 1 - 3:" Set slip column script new_value v_script select case 'and select . ' When '1' then 'script _' 'when' 2 'then' script_b 'then' 3 'then' script_c 'else' menu 'repeats as a script end'; @ & Amp; The word 'menu' in the ELSE section of the NB case expression is the name of this script, so that the user enters an invalid option, in the word set on v_script  

.


Comments

Popular posts from this blog

iphone - How do I make a UIPickerView in a UIActionSheet -

java - Is there an object like a "Set" that can contain only unique string values, but also contain a count on the number of occurrences of the string value? -