Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.server -> Re: Can someone with access to 8ir3 test this for me please?
Noons wrote:
> Andy Hassall <andy_at_andyh.co.uk> wrote in message news:<va9n30d3rad7d82bc2kch9duutsm1mtgln_at_4ax.com>...
>
>
>
>
>> I agree with you that it should be documented in EXECUTE IMMEDIATE's docs; if >>there's a note in the DBMS_SQL docs, there should be a corresponding one in its >>replacement.
>> So yes, it's under-documented. There's this bit in the docs: >>http://download-uk.oracle.com/docs/cd/B10501_01/appdev.920/a96624/11_dynam.htm#11623 >> ... which hints at the restriction,
>>but you were trying to bind a value to a >>numeric parameter, not an identifier of a schema object, so it's reasonable to >>think that this restriction wouldn't apply to your example.
>>>Like I said: there is nothing written anywhere >>>explaining bind variables cannot be used with DDL in >>>EXECUTE IMMEDIATE. >> >> ... there's the Concepts guide: >>http://download-uk.oracle.com/docs/cd/B10501_01/server.920/a96524/c16sqlpl.htm#CNCPT216 >> ... and then ... >>http://download-uk.oracle.com/docs/cd/B10501_01/server.920/a96524/c16sqlpl.htm#1628 >> Which does that at a lower level - it states that DDL _in general_ doesn't >>have a Bind stage; so therefore you can't use bind variables in it, however >>you're executing it. Which then would apply equally to EXECUTE IMMEDIATE and >>any other interface?
asktom:
http://asktom.oracle.com/pls/ask/f?p=4950:8:12010934572944453880::NO::F4950_P8_DISPLAYID,F4950_P8_CRITERIA:455220177497,
(may wrap):
<quote>
Followup:
it would be
execute immediate 'create table ' || t1 || '(eno number)';
you cannot BIND DDL ever -- DDL does not do bind variables. </quote>
-- Regards, Frank van BortelReceived on Thu Feb 26 2004 - 14:36:03 CST