有没有成功我也不知道,你应该看看有没有异常抛出,异常信息会告诉你的
你的catch(Exception e){}里面应该至少要把异常打印出来吧
这样才知道可能发生了什么异常,你这样空在那里,有什么用?
你的catch(Exception e){}里面应该至少要把异常打印出来吧
这样才知道可能发生了什么异常,你这样空在那里,有什么用?

可惜不是你,陪我到最后

2006-12-19 23:18
2006-12-19 23:23

2006-12-19 23:23
2006-12-19 23:26
2006-12-19 23:39
感觉这块写的有问题
PreparedStatement stmt = con.prepareStatement("select item_id from item where item_id=?");
stmt.setString(0,"002");

2006-12-19 23:44
感觉这块写的有问题
PreparedStatement stmt = con.prepareStatement("select item_id from item where item_id=?");
stmt.setString(0,"002");
下标从1开始,不是从0开始
还有你这语句写了有什么意义,查找item_id,而这个item_id又是你赋值的,查出来的不就是你赋值的那个值,而不是所有列
要查出所有列你可以用"select * from item where item_id=?";

2006-12-20 09:37
2006-12-20 16:10