Home Page for the TeradataForum

Archives of the TeradataForum

Message Posted: Sat, 06 Mar 2004 @ 08:18:53 GMT

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

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)
select count(*) where c2 like 'a%' into :j from mytab;

Don't ask me why, it's probably a leftover from the old pre-SQL Teradata Query Language...


  <Prev Next>   <<First <Prev Next> Last>>  
  Top Home Privacy Feedback  
Copyright for the TeradataForum (TDATA-L), Manta BlueSky    
Copyright 2016 - All Rights Reserved    
Last Modified: 27 Dec 2016