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!

Temporary Tables....insert

620697Mar 14 2008 — edited Nov 13 2008
Hi,

I have created temporary table like:

create global temporary table temp on commit preserve rows as
select * from t1,t2 where.....;

Table got created. when i am inserting data by issuing :
sql>insert into temp select * from t1,t2 where ....; it is inserting.

But when i am trying to execute the same insert stmt in procedure,proc is executed.But there is no data in temp table.Why ?

Any helps.

Thanks.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Dec 11 2008
Added on Mar 14 2008
18 comments
3,619 views