Home Page for the TeradataForum
 

Archives of the TeradataForum

Message Posted: Thu, 09 May 2002 @ 20:56:30 GMT


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


Subj:   Where clause in insert macro
 
From:   Anomy Anom

<-- Anonymously Posted: Thursday, May 09, 2002 15:25 -->

Can there be a where clause in an insert macro? If so, what am I doing wrong?

replace macro r_kfm043
(
 rfac_terma     (char(11)),
 rfac_termz     (char(11))
)
as
(
insert into facsect2v1
 (
  fac_terma,
  fac_termz
 )
values
 (
  :rfac_terma,
  :rfac_termz
 )
where rfac_terma like ('%kzz') or rfac_termz like ('%kzz'));
);

  $
 *** Failure 3706 Syntax error: Did not expect 'where' that follows the ')'.


     
  <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: 15 Jun 2023