I am trying to call a stored procedure from Java using JDBC4PreparedStatement. The stored procedure takes in two input parameters and one output. I set the two input parameters by calling preparedStatement.setString(index, param)
but I tried the same for the output and get this error:
OUT or INOUT argument 3 for routine db.deleteItem is not a variable or NEW pseudo-variable in BEFORE trigger
Is there a specific type I need to use? If so, how do I set it? I couldn't find any good examples.
Thanks