Home Page for the TeradataForum
 

Archives of the TeradataForum

Message Posted: Sat, 20 Jul 2002 @ 14:27:51 GMT


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


Subj:   Re: Passing In-List of Values to a Macro
 
From:   Colo Tordoc

In short No. You need to pass as many parameters as needed in the IN clause.

You could "assume" that there will be max n parameters, pass the ones you want and null the rest - further "assuming" that ColumnA is not nullable (where ColumnA in (1 , 4, NULL, ... , NULL) . Not pretty. With Stored procedures you could dynamically create the sql but you do not have (as far as I know) access to the result set.

I hope this helps,

Colo



     
  <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