Retrieve anonymous PLSQL block result

前端 未结 2 1472
伪装坚强ぢ
伪装坚强ぢ 2021-01-26 14:45

I have some trouble retrieving the result of an anonymous PLSQL block in java.

Here is the block :

DECLARE
in_cnt_date DATE := \'&1\';
hv_cnt_id NUM         


        
2条回答
  •  别那么骄傲
    2021-01-26 15:27

    Remove all exception handlers from the PL/SQL code, and execute the block and you will see the exact line number where the error occurs.

    Raise inside exception will never let you know the exact error details. Please read http://lalitkumarb.wordpress.com/2014/05/02/when-others-then-null-a-bug/ Focus on the RAISE part.

    Once you do it, you will find that there is an data type conversion issue.

提交回复
热议问题