Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.misc -> Re: Oracle Script For Menu
Arijit, Sybrand is correct and SQLPlus has no looping construct either.
One way to accomplish what you want is to use a shell script to display the options and accept the selection followed by a case statement where the appropriate sqlplus script is executed via batch:
sqlplus -s username/password @script
Another method is while SQLPlus has no loop it does support recursion. You can recursively call a routine however there is a limit. It was around 20.
HTH -- Mark D Powell -- Received on Fri Jun 10 2005 - 09:05:12 CDT
![]() |
![]() |