Splitting comma separated string in a PL/SQL stored proc

前端 未结 8 1825
别跟我提以往
别跟我提以往 2020-11-30 05:08

I\'ve CSV string 100.01,200.02,300.03 which I need to pass to a PL/SQL stored procedure in Oracle. Inside the proc,I need to insert these values in a Number column in the ta

8条回答
  •  广开言路
    2020-11-30 05:33

    As for the connect by use case, this approach should work for you:

    select regexp_substr('SMITH,ALLEN,WARD,JONES','[^,]+', 1, level)
    from dual
    connect by regexp_substr('SMITH,ALLEN,WARD,JONES', '[^,]+', 1, level) is not null;
    

提交回复
热议问题