WHERE IN中的参数化数组

时间:2018-10-04 17:47:28

标签: amazon-redshift dapper

我正在尝试通过dapper使用“ WHERE IN”进行过滤,但收到错误。我尝试过:

WHERE Channel = ANY(SELECT @Channels) = Npgsql.PostgresException (0x80004005): 42883: operator does not exist: character varying = text[]

WHERE Channel = ANY(@Channels): Npgsql.PostgresException (0x80004005): 22P03: invalid array flags

WHERE Channel IN @Channels: Npgsql.PostgresException (0x80004005): 42601: syntax error at or near "$1"

WHERE Channel IN (@Channels): Npgsql.PostgresException (0x80004005): 42883: operator does not exist: character varying = text[]

频道是List<string>

我该怎么做?

0 个答案:

没有答案