How to create a menu in SQLPlus or PL/SQL

后端 未结 6 1664
爱一瞬间的悲伤
爱一瞬间的悲伤 2020-12-11 22:15

I have several scripts that I would like to start from a menu presented to the SQLPlus user. Something like:

Please make a selection:
1: Do script a

6条回答
  •  渐次进展
    2020-12-11 22:59

    It's hard to accomplish what you are trying to do with SQLPlus and/or PL/SQL.

    SQLPlus is a frontend for Oracle databases. Its main purpose is to perform queries against an Oracle RDBMS.

    PL/SQL is a language to manipulate data in Oracle.

    Instead, if you want something with user interaction, I would suggest you to write a little script/program in insert your favorite language here (could python, C/C++, C#, Java) with an Oracle connection to perform the SQL queries or PL/SQL programs you need.

提交回复
热议问题