Home Page for the TeradataForum
 

Archives of the TeradataForum

Message Posted: Fri, 10 May 2002 @ 19:46:03 GMT


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


Subj:   Re: Where clause in insert macro
 
From:   Jim Downey

You cannot have a where clause in an insert/values statement. Try this:

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


     
  <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