ORA-14552: cannot perform a DDL, commit or rollback inside a query or DML [message #47813] |
Tue, 21 September 2004 07:44 |
Shampa Srivastava
Messages: 9 Registered: August 2004
|
Junior Member |
|
|
Is there no way to execute a DDL inside a query?
I am trying the following query:
declare
retval DATE;
select FUNC1 ('01-Aug-04' ) into retval from dual;
Func1 has the following statement in its body besides other logic : EXECUTE IMMEDIATE 'ALTER SESSION SET NLS_DATE_LANGUAGE="AMERICAN"'
The function runs fine but is it possible to derive the result of function through query?
Thanks
|
|
|
|
|
|
|
|
|