Quantcast
Channel: Teradata Forums - All forums
Viewing all articles
Browse latest Browse all 27759

Returning a Results from Stored Procedure - response (1) by dnoeth

$
0
0

Do you actually need to access the result several times?
Then you should materialize it in a Global Temporary Table.
When you only want to return it to the client, it's 

replace procedure xxx (...)
dynamic result sets 1
begin
   ...
   declare rslt cursor with return only to client for
   select .....;
   open rslt; -- don't close it!!

 
Dieter
 
 
 


Viewing all articles
Browse latest Browse all 27759

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>