代码:
Connection conn =DBHelper.getConnection();
String sql = "update userinfo set balance=?"+"where id=?";
PreparedStatement ps = (PreparedStatement) conn.prepareStatement(sql);
ps.setDouble(1, balance);
ps.setInt(2, id);
ps.executeUpdate(sql);
zzZerOrz
相关分类