I have created a custom table in Oracle as below and my stored procedure returning the list when test independently using test data.
create or replace TYPE NAMELIST AS TABLE OF VARCHAR2(20);
But when I am trying to call this stored procedure using Java spring, I am not able to return the List<String>
.
declareParameter(new SqlOutParameter('l_out', OracleTypes.ARRAY, 'NAMELIST',
new SqlReturnArray()));
How can we return the custom list from Oracle in java?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…