日期:2014-05-16  浏览次数:20415 次

Spring jdbcTemplate应用(二)

1.?JdbcTemplate 更新数据

?

Java代码???收藏代码
  1. public?boolean?switchStartOrderMeeting(String?argument,?String?flag)??
  2. ????????????throws?DataAccessException?{??
  3. ????????boolean?result?=?false;??
  4. ????????String?sql?=???
  5. ????????????sql?=?"update?COMPETITION_BASE_T?t?set?T.F_COMPETE_ORDER_STATE?=?'0'"+??
  6. ????????????"?where?T.F_COMPETITION_ID?=??";??
  7. ????????int?i?=?0