|
|
Archives of the TeradataForum
Message Posted: Sat, 06 Mar 2004 @ 08:18:53 GMT
Subj: | | Re: Store procedure Select into |
|
From: | | Dieter Noeth |
Hi Nancy,
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...
Dieter
| |