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: simple problem

Re: simple problem

From: Frank van Bortel <frank.van.bortel_at_gmail.com>
Date: Mon, 15 Oct 2007 19:39:35 +0200
Message-ID: <ff08kl$1ii$1@news1.zwoll1.ov.home.nl>


abdoul85 wrote:
> hello
> I'd like to do sth like this:
>
> declare
> a varchar(100);
> begin
> select version into a from v$instance;
> if (a like '10%') then
> @ver10.sql
> else
> @oldver.sql
> end if;
> end;
>
> how to write something like that in PL/SQL ?
>

Looks good - what did you actually try? And it actually is PL/SQL.

And a question: the @ver10 thing is SQL*Plus - not PL/SQL; why do you want this in PL/SQL when it will not work?

-- 
Regards,
Frank van Bortel

Top-posting is one way to shut me up...
Received on Mon Oct 15 2007 - 12:39:35 CDT

Original text of this message

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