这是一个sql Plus脚本:
prompt Please make a selection: prompt 1: Do script a prompt 2: Do script b prompt 3: Do script c accept selection prompt "Enter option 1-3: " set term off column script new_value v_script select case '&selection.' when '1' then 'script_a' when '2' then 'script_b' when '3' then 'script_c' else 'menu' end as script from dual; set term on @&v_script.