I have the following Java Stored procedure which works fine, but what what I need to do is change one or more values in a field before I return the ResultSet. Can some show me an example of how to do that?
Thank You
Peter
public class SQL1131
{
public static void abend (String input, ResultSet[] rsout) throws
SQLException, Exception
{
int errorCode;
try
{
Connection con = DriverManager.getConnection("jdbc:default:connecti on");
String query = "SELECT * FROM STAFF WHERE JOB = ?";
PreparedStatement pstmt = con.prepareStatement(query);
pstmt.setString(1, input);
rsout[0] = pstmt.executeQuery();
}
catch (SQLException sqle)
{
errorCode = sqle.getErrorCode();
throw new SQLException( errorCode + " FAILED" );
}
}
}