executeUpdate的问题!
vibra 2003-03-31 12:30:26 我在bean中写了一个executeUpdate的方法,只做一次更新就很正常,但如果连续
更新就出问题了
String update1="update libbook set bdate='"+bdatetime+"' where cardid='"+cardid+"' and bookctl='"+bookctl+"'";
connBeanId.executeUpdate(update1);
String update2="update libbook set rdate='"+rdatetime+"' where cardid='"+cardid+"' and bookctl='"+bookctl+"'";
connBeanId.executeUpdate(update2);
只能更新前面那个
后面那个就更新不了,抛出异常说general error
这是什么回事?