Home Page for the TeradataForum
 

Archives of the TeradataForum

Message Posted: Wed, 19 Dec 2012 @ 13:43:32 GMT


     
  <Prev Next>   <<First <Prev
Next>
Last>>
 


Subj:   Re: Using results returned from a Stored Procedure
 
From:   David Clough

Fred Pluebell wrote ....

  After you call the SP, use ALLOCATE statement to open a cursor for the result set. You can't use FOR to iterate through the result set, you need to explicitly FETCH. If your SP returns multiple result sets, you can ALLOCATE a cursor for the second after you CLOSE the first.  


Blow me down, it only works !

Thanks Fred.

If anyone wants the example, look at page 35 in the Stored Procedures Manual (V13). The example works a treat.

If only I could then do

     SELECT * FROM TABLE (CALL alloc007()) ........ then we'd have it all !!

Regards

David Clough
Senior BI Database Designer



     
  <Prev Next>   <<First <Prev
Next>
Last>>
 
 
 
 
 
 
 
 
 
  
  Top Home Privacy Feedback  
 
 
Copyright for the TeradataForum (TDATA-L), Manta BlueSky    
Copyright 2016 - All Rights Reserved    
Last Modified: 15 Jun 2023