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

Home -> Community -> Mailing Lists -> Oracle-L -> Re: exec immediate

Re: exec immediate

From: Phil Jones <phillipjones_at_gmail.com>
Date: Tue, 24 Jan 2006 13:27:35 +0000
Message-ID: <b64a80d00601240527p44b7a68cv@mail.gmail.com>


Hi,

You'll be wanting:

BEGIN
execute immediate 'select SYSDATE from DUAL'; END; (Note the semi-colon at the end of the line).

Cheers,

Phil

On 24/01/06, raja rao <raja4list_at_yahoo.com> wrote:
> Hi Team,
>
> when the below is run i am getting the error. can someone help me :
>
> begin
> execute immediate ' select sysdate from dual ;'
> end ;
>
>
>
> *
> ERROR at line 3:
> ORA-06550: line 3, column 1:
> PLS-00103: Encountered the symbol "END" when expecting one of the following:
> . ( * @ % & = - + ; < / > at in is mod not rem return
> returning <an exponent (**)> <> or != or ~= >= <= <> and or
> like between into using || bulk
> The symbol ";" was substituted for "END" to continue.
>
>
> ________________________________
>
> What are the most popular cars? Find out at Yahoo! Autos
>
>

--
http://www.freelists.org/webpage/oracle-l
Received on Tue Jan 24 2006 - 07:27:35 CST

Original text of this message

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