是必须要删除的!!
以删除记录为例:
String sql = "delete from {tablename} where {<search_condition>}"; Connection con = null;
PreparedStatement stmt = null;
try {
con=getConnection();
stmt = con.prepareStatement(sql);
stmt.executeUpdate();
}
finally {
try {
if (stmt != null) {
stmt.close();
}
}catch (Exception e) {}
try {
if (con != null) {
con.close();
}
}catch (Exception e) {}
}
以删除记录为例:
String sql = "delete from {tablename} where {<search_condition>}"; Connection con = null;
PreparedStatement stmt = null;
try {
con=getConnection();
stmt = con.prepareStatement(sql);
stmt.executeUpdate();
}
finally {
try {
if (stmt != null) {
stmt.close();
}
}catch (Exception e) {}
try {
if (con != null) {
con.close();
}
}catch (Exception e) {}
}
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货