Home Page for the TeradataForum
 
 

 

Archives of the TeradataForum





Message Posted: Tue, 21 Mar 2006 @ 14:38:57 GMT





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




Subj:   MULTIPLE ROWS from STORED PROCEDURE
 
From:   Peter.Davies



I am new to Teradata and its use of Stored Procedures. Also nw to this forum I hope that someone can help.

I want to use a stored procedure to return the output of a select statement.

     CREATE PROCEDURE GETBANKHOLIDAYS
     ()
     BEGIN

     DECLARE BH DATE;

     SELECT Bank_Holiday into :BH from BanklHolidays;

     END;

I know this does not work but I am more adept at SQL Server than Teradata.

What I wish to know is how if possible can I get back a list of all the bank holidays from a stored procedure.

It woudl appear that Selecting multiple row sets is not allowed , but I would love to be proved wrong.


Regards

Peter Davies





     
  <Prev Next>  
<<First
<Prev
Next> Last>>  
 
 
 
 
 
 
 
 
  
 
  Top Home Join Privacy Feedback  
 
 
Copyright for the TeradataForum (TDATA-L), Manta BlueSky 
Last Modified: 30 Jun 2008