如何在调用存储过程时从前端设置INOUT参数

Ami*_*pta 1 java stored-procedures jdbc

我开发了一个SP,比如abc(a,b,c),其中

  • a是IN参数
  • b是OUT参数
  • c是INOUT参数.

如果我因为abc(<val>,?,?),错误而直接从数据库中调用此sp

The number of variables in the EXECUTE statement, the number of variables in the OPEN statement, or the number of arguments in an OPEN statement for a parameterized cursor is not equal to the number of values required.

但如果我运行它abc(<val>,?,<val>),它运行成功.

我想通过Java程序调用此SP.为此,我设置IN&INOUT参数.并注册OUT和INOUT参数.但它给了我与上面相同的错误