0

This is on Teradata specifically, but in general, is it possible for a macro to accept a list as a parameter? E.g.,

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

...and then...

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

1 回答 1

0

据我所知,Teradata 不支持这种宏定义。您必须指定与参数关联的数据类型。

您可以查看此文档:SQL 数据定义语言 - 语法和示例并查看宏部分。 http://www.info.teradata.com/edownload.cfm?itemid=091260012

于 2010-09-01T18:49:55.060 回答