 |
 |
Archives of the TeradataForum
Message Posted: Sat, 20 Jul 2002 @ 14:27:51 GMT
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
| |