Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.misc -> Re: Oracle Script For Menu

Re: Oracle Script For Menu

From: <sybrandb_at_yahoo.com>
Date: 10 Jun 2005 06:07:39 -0700
Message-ID: <1118408859.068820.204160@g44g2000cwa.googlegroups.com>


set echo off
ACCEPT VAL PROMPT 'ENTER CHOICE :'
begin
if &val = 1 then
  activity1
elsif &val = 2 then
 activity2
end;
/

Please note there is SQL and PL/SQL. SQL doesn't have procedural constructs. So in ordinary SQL if then else is not possible.

--
Sybrand Bakker
Senior Oracle DBA
Received on Fri Jun 10 2005 - 08:07:39 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US