pass array to oracle procedure

前端 未结 6 1383
孤街浪徒
孤街浪徒 2020-11-27 17:36

I want to send two arrays form java to oracle stored procedures. The first Array is array of strings and the second is array of chars how can I make this??

6条回答
  •  一生所求
    2020-11-27 18:20

    Regex solve

    select * from table_a  a where a.col in (select   regexp_substr('SMITH,ALLEN,WARD,JONES','[^,]+', 1, level) from dual
    connect by regexp_substr('SMITH,ALLEN,WARD,JONES', '[^,]+', 1, level) is not null;)
    

提交回复
热议问题