Archives of the TeradataForum
Message Posted: Sat, 06 Mar 2004 @ 08:18:53 GMT
Teradata follows the ANSI SQL syntax for SPs, so "SELECT col INTO :Param FROM table" is correct. BUT, as long as Teradata's parser recognizes the first keyword it doesn't care about the order of FROM/WHERE/GROUP BY/HAVING/ORDER BY.
You could even write
replace procedure sp (out j int) begin select count(*) where c2 like 'a%' into :j from mytab; end;
Don't ask me why, it's probably a leftover from the old pre-SQL Teradata Query Language...
|Copyright 2016 - All Rights Reserved|
|Last Modified: 27 Dec 2016|