Home Page for the TeradataForum
 

Archives of the TeradataForum

Message Posted: Fri, 05 Mar 2004 @ 20:48:14 GMT


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


Subj:   Re: Store procedure Select into
 
From:   Nancy Shen

Teradata has a very different syntax for SELECT INTO!

Normally we say "SELECT COUNT(*) INTO :outparam FROM mytab WHERE...",

Or in the case of SQL Server we say "SELECT @outparam = COUNT(*) FROM mytab WHERE...";

but Naresh's working example showed the INTO has to be placed after the table name:

>replace procedure sp (out j int)
>begin
>select count(*) from mytab into :j where c2 like 'a%';
>end;

I just wonder if anybody know the history of Teradata's decision to design SELECT INTO into the current syntax.

Regards, Nancy



     
  <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