문제

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