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: Dynamice SQL in Oracle

Re: Dynamice SQL in Oracle

From: Sybrand Bakker <postbus_at_sybrandb.demon.nl>
Date: Thu, 12 May 2005 00:02:48 +0200
Message-ID: <h605811ho1vclseo1l3db721i3q3r2puej@4ax.com>


On Wed, 11 May 2005 22:30:40 +0200, Maxim Demenko <mdemenko_at_gmail.com> wrote:

>Sybrand Bakker schrieb:
>> On Wed, 11 May 2005 22:02:39 +0200, Maxim Demenko <mdemenko_at_gmail.com>
>> wrote:
>>
>>
>>>As the table t was created with execute immediate, he didn't have
>>>another choice ;-)
>>
>>
>> Nonsense!
>>
>>
>> --
>> Sybrand Bakker, Senior Oracle DBA
>Really ?
>What do you think would be a result of
>
>SQL> begin
> 2 execute immediate 'create table t(id number)';
> 3 insert into t values(1);
> 4 commit;
> 5 end;
> 6 /
>
>I assume, it will be an error on line 3...
>
>Best regards
>
>Maxim

I stand corrected.
However, of course, this piece of code has nothing to do with proper development methods. In Oracle you don't need to create tables on the fly.

--
Sybrand Bakker, Senior Oracle DBA
Received on Wed May 11 2005 - 17:02:48 CDT

Original text of this message

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