逗号分隔的输入字符串

时间:2019-08-07 05:25:24

标签: sql oracle split

SELECT DISTINCT REGEXP_SUBSTR(TO_CHAR(:InputString),'[^,]+', 1, LEVEL) AS  VEA_VALIDATION_INFOLET_PARAMS FROM DUAL
CONNECT BY REGEXP_SUBSTR(TO_CHAR(:InputString), '[^,]+', 1, LEVEL) IS NOT NULL;

使用此语句会出错,当我尝试传递4000个以上的字符时。

  

“ ORA-01460:请求未实现或不合理的转换”

SELECT DISTINCT REGEXP_SUBSTR(TO_CHAR(:InputString),'[^,]+', 1, LEVEL) AS  VEA_VALIDATION_INFOLET_PARAMS FROM DUAL
CONNECT BY REGEXP_SUBSTR(TO_CHAR(:InputString), '[^,]+', 1, LEVEL) IS NOT NULL;

我希望用逗号分隔数据。

0 个答案:

没有答案