Вопрос

I cannot find how we can use DBUtils to invoke callable statements

Can we some how specify which all fields are inputs and which all re outputs ?

Это было полезно?

Решение

You just need to use a CallableStatement

Connection con = ...; // get the connection
CallableStatement callStatement = con.prepareCall("{CALL yourStoredProcedure()}");
ResultSet rs = callStatement.executeQuery();
// do what you need to do
Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top