public void executeUpdate(String sql)
{
stmt = null;
rst = null;
try {
conn=ds.getConnection();
stmt=conn.createStatement();
stmt.executeUpdate(sql);
stmt.close();
//conn.close(); //去掉这一行
}
{
stmt = null;
rst = null;
try {
conn=ds.getConnection();
stmt=conn.createStatement();
stmt.executeUpdate(sql);
stmt.close();
//conn.close(); //去掉这一行
}
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货