ExecuteBatch method return array of value -2 in java

前端 未结 4 974
深忆病人
深忆病人 2020-12-14 06:55

When I am executing executeBatch method in java, its returning an int array that\'s fine but the value is -2 of all array elements,

it should be 0 or +ve number that

4条回答
  •  难免孤独
    2020-12-14 08:00

    Note that since Oracle 12c this shouldn't be the case anymore:

    For a prepared statement batch, the array contains the actual update counts indicating the number of rows affected by each operation.

    See https://docs.oracle.com/database/121/JJDBC/oraperf.htm#JJDBC28773

提交回复
热议问题