如何获取PreparedStatement参数设置的值?

如:
 String sql="select * from table where field1=? and field2=? "
 ...
 preparedStatement.setString(1,"a");
 preparedStatement.setString(2,"b");


怎样才能获取 preparedStatement的参数值a,b?

你可能感兴趣的:(sql,jdbc,ibatis,IBM,J#)