Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

execute immediate does not work ,It does nothing in any command

846537Mar 10 2011 — edited Mar 10 2011
Hello,

I have several commands in a store procedure. They are all generated dynamically , something like below .

l_sql := 'DELETE FROM ' || l_orig_table_name || ' WHERE site = :site AND day < :day';

EXECUTE IMMEDIATE l_sql USING l_site_name, l_days;

I do not know why nothing happens in any of the commands .

It just does nothing. Though when I add a bad command it do returns an error.


I have also 'INSERT INTO ..... SELECT....' that does not work.


could anybody give me a hint. I've been looking everywhere for an answer without success.
Thanks,

John,
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Apr 7 2011
Added on Mar 10 2011
2 comments
345 views