problem with execute immediate in Report 6i [message #160850] |
Tue, 28 February 2006 12:43 |
charles_jess
Messages: 3 Registered: February 2006
|
Junior Member |
|
|
Hi,
I am having problems with execute immediate statement its giving me an error in oracle report 6i
function BeforeReport return boolean is
sqlcode varchar2(1000);
begin
sqlcode := 'create global temporary table temp as select * from sample';
execute immediate (sqlcode);
end;
Could you let me know my mistake.
Thanks
|
|
|
|
|
Re: problem with execute immediate in Report 6i [message #566418 is a reply to message #566398] |
Fri, 14 September 2012 06:28 |
cookiemonster
Messages: 13963 Registered: September 2008 Location: Rainy Manchester
|
Senior Member |
|
|
@deepak.apps - Welcome to the forum. Can you please read and follow the orafaq forum guide - especially the part on how to format your post.
If you want to help people out, and help is appreciated, may I suggest you pick a thread to answer that's recent? This one is from 2006.
In addition - while srw.do_sql will allow you to do dynamic sql, I can't think of a single scenario in which creating a table in a report is a good idea. Maaher's original suggestion that the table be created once is correct.
EDIT: typo
[Updated on: Fri, 14 September 2012 06:28] Report message to a moderator
|
|
|