marieannie
Programmer
Hello, I have a simple Menu
PROMPT Customers
PROMPT Orders
PROMPT Production
PROMPT Quit
ACCEPT option PROMPT "option: "
Begin
/*I would like to add a condition.*/
If option = 'C' then
Start sqlCustomers.sql /*which is another menu containing option for Add,Modify,delete*/
if option = 'O' then
Start sqlOrders.sql
end if;
end;
/
I already tried but is not working...
This is the error...
Choose an option: C
old 3: if &option = C then
new 3: if C = C then
old 7: if &option = O then
new 7: if C = O then
START c:\sql\sqlCustomers.sql;
*
ERROR at line 4:
ORA-06550: line 4, column 2:
PLS-00103: Encountered the symbol "START" when expecting one of the following:
begin case declare exit for goto if loop mod null pragma
raise return select update while with <an identifier>
<a double-quoted delimited-identifier> <a bind variable> <<
close current delete fetch lock insert open rollback
savepoint set sql execute commit forall merge
<a single-quoted SQL string> pipe
<an alternatively-quoted SQL string>
Any suggestions?
do you have an example code of how to create a simple menus?
Thank you
MA
PROMPT Customers
PROMPT Orders
PROMPT Production
PROMPT Quit
ACCEPT option PROMPT "option: "
Begin
/*I would like to add a condition.*/
If option = 'C' then
Start sqlCustomers.sql /*which is another menu containing option for Add,Modify,delete*/
if option = 'O' then
Start sqlOrders.sql
end if;
end;
/
I already tried but is not working...
This is the error...
Choose an option: C
old 3: if &option = C then
new 3: if C = C then
old 7: if &option = O then
new 7: if C = O then
START c:\sql\sqlCustomers.sql;
*
ERROR at line 4:
ORA-06550: line 4, column 2:
PLS-00103: Encountered the symbol "START" when expecting one of the following:
begin case declare exit for goto if loop mod null pragma
raise return select update while with <an identifier>
<a double-quoted delimited-identifier> <a bind variable> <<
close current delete fetch lock insert open rollback
savepoint set sql execute commit forall merge
<a single-quoted SQL string> pipe
<an alternatively-quoted SQL string>
Any suggestions?
do you have an example code of how to create a simple menus?
Thank you
MA