Home Page for the TeradataForum
 

Archives of the TeradataForum

Message Posted: Mon, 13 Feb 2012 @ 09:01:44 GMT


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


Subj:   Re: Macro - String Parsing
 
From:   Machha Narayan Rao Naidu

Hi,

Try this

     replace macro TEST(NAMES1 varchar(30),NAMES2 varchar(30),NAMES3 varchar(30)) as
     ( select  * from EMPLOYEE where   NAME = :NAMES1
        or   NAME = :NAMES2
        or   NAME = :NAMES3
     ; );

     exec test ('NAMES1','NAMES2','NAMES3');

Thanks

Machha



     
  <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