62,612
社区成员
发帖
与我相关
我的任务
分享
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();
}
}