SELECT
A.*,
REGEXP_SUBSTR( A.PRODUCTNUMS, '[^,]+', 1, L ) AS PRODUCTNUM,
L
FROM
LG_ZJQH_PRODUCTVALUES_WWDGX A,
( SELECT LEVEL L FROM DUAL CONNECT BY LEVEL <= 1000 ) --限制一下level数量,提高查询速度。否则数据较多的情况下,会一直查询不出结果
WHERE
L ( + ) <= regexp_count ( A.PRODUCTNUMS, ',' ) + 1