oracle Array filled with null data in java

前端 未结 3 1557
轻奢々
轻奢々 2021-02-10 16:10

When I try to throw an Array of strings to oracle stored procedure as:

String arrStr[] ={\"val1\",\"val2\",\"val3\"};
ArrayDescriptor descriptor = ArrayDescripto         


        
3条回答
  •  鱼传尺愫
    2021-02-10 16:59

    Probably your STR_ARRAY is defined in this way:

    create or replace type STR_ARRAY is table of VARCHAR2(20);

    As Tomas said the problem is encoding. My solution - use NVARCHAR2 instead.

    create or replace type STR_ARRAY is table of NVARCHAR2(20);

提交回复
热议问题