SELECT
Q."COLUMN1"
FROM
(SELECT
"COLUMN1",
CAST ((SELECT CAST (RTRIM (PARAM) AS VARCHAR(50)) FROM TABLE_VIEW WHERE PARAM_ID = :ID) AS VARCHAR(50)) AS "COLUMN2"
FROM ("TABLE1")Q
WHERE
RTRIM(CAST("COLUMN1" AS CHAR(10))) IN (SELECT VALUE_1 FROM TABLE (SPLIT_PARAMS(CAST(Q."COLUMN2" AS VARCHAR(50)),',',5)))
COLUMN2根据运行时提供的输入从单独的表中获取其值。
查询中使用的过滤器由一个用过的已定义的表值函数组成,该函数用于将逗号分隔值拆分为单个值。
查询将错误消息抛出:
“功能不支持.SQLCODE = -270,SQLSTATE = 42997”
任何人都可以帮我找到问题的原因。