spring 插入 null
?1:? this.getJdbcTemplate().update(UPD_FIN_INACCT_INFO2, paramValues);
?
?
?
2:? this.getJdbcTemplate().update(new PreparedStatementCreator() {
????public PreparedStatement createPreparedStatement(
??????Connection con) throws SQLException {
?????PreparedStatement ps = con
???????.prepareStatement(UPD_FIN_INACCT_INFO2);
?????ps.setString(1,fre_mode );
?????ps.setString(2, status);
?????ps.setString(3, fre_amt);
?????ps.setString(4,fre_start_date);
?????ps.setString(5, fre_end_date);
?????ps.setString(6, acct_no);
?????return ps;
????}
???});
?
?
如果fre_start_date 参数为null? 的话 在1中会中无效类型 null? ,2中的话通过ps.setString(4,fre_start_date);
所有没错