62,634
社区成员




String sqlupdate="update 表名 set 表名.price=? where 表名.price=?";
PreparedStatement pstmt=null;
try {
pstmt=dbBean.getPreparedStatement(sqlupdate);
pstmt.setString(1,price);
pstmt.setString(2,price);
pstmt.executeUpdate();
} catch (SQLException e) {
e.printStackTrace();
}finally{
try {
if(pstmt!=null)
pstmt.close();
} catch (SQLException e) {
e.printStackTrace();
}
}