2010-08-30 81 views
0

這是Teradata的具體內容,但一般情況下,宏是否可以接受列表作爲參數?例如,sql宏參數

create macro myMacro (incomingList) AS 
(
    select foo 
    from tBar 
    where animal in (:incomingList); 
); 

...然後...

exec myMacro(('chicken','pig','cow')); 

回答