Archives of the TeradataForum
Message Posted: Tue, 21 Mar 2006 @ 14:38:57 GMT
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.
|Copyright 2016 - All Rights Reserved|
|Last Modified: 15 Jun 2023|