Database Management
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsDatabasesDatabase Management

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old October 13th, 2003, 06:32 AM
mamtakansal mamtakansal is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2003
Posts: 10 mamtakansal User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Syntax for selecting from Oracle temporary table..

Hello there,

I am trying to use Oracle temporary table from a stored procedure. I can create and insert data into it without any problem. However, when I try to select from the table as follows:

v_stmt := 'SELECT COUNT(child_id) INTO v_child_count FROM T_TOPIC_RELATIONS ' ||
'WHERE parent_id = ' || v_id;
EXECUTE IMMEDIATE v_stmt;

it compiles fine. However, when I try to run my stored procedure, I get the error: ORA00905: Missing keyword. How can I select from the temp table and store the result in a variable, other than cursor?

I am using Oracle 9.2. Any help will be greatly appreciated!

Thanks a lot in advance.

Last edited by mamtakansal : October 13th, 2003 at 06:57 AM.

Reply With Quote
Reply

Viewing: Dev Shed ForumsDatabasesDatabase Management > Syntax for selecting from Oracle temporary table..


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 6 hosted by Hostway
Stay green...Green IT