我正在尝试通过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>
我该怎么做?