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

Home -> Community -> Usenet -> c.d.o.server -> Re: Create index only if index not exists in PL/SQL procedure

Re: Create index only if index not exists in PL/SQL procedure

From: Noel <tomekb_at_softman.pl>
Date: Wed, 14 Apr 2004 15:17:40 +0200
Message-ID: <c5jdm7$lm3$1@inews.gazeta.pl>


> In my procedure I do:
>
> 1, Drop index X
> 2, Create table Y as select...
> 3, Create index X for table Y
>

declare
 succ boolean;
begin
 succ := TRUE;
 begin
  exec proc 1;
 exception when others then succ := FALSE;  end;

  if succ then
   begin
    exec proc 2;
   exception when others then succ := FALSE;   end;
 end if;

  if succ then
   begin
    exec proc 3;
   exception when others then succ := FALSE;   end;
 end if;

.
.
.

end;

--
TomekB
www.softman.pl
Received on Wed Apr 14 2004 - 08:17:40 CDT

Original text of this message

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