后台打印错误:java.sql.SQLException: ORA-01008: 并非所有变量都已关联,谁碰到这种问题??如何解决??
我的类的方法为: public boolean setCommentFlowFlag (String value,String modid){
boolean flag=false;
String sql="update module set commentflag=? where moduleid=?";
try {
conn = dbutil.getConnection(); //conn,pst,dbutil已经在类中声明是实例变量
pst = conn.prepareStatement(sql);
pst.setString(1, value);
pst.setString(2,modid);
int i = pst.executeUpdate(sql);
if(i!=0)
flag=true;
return flag;
}
.........省略相关catch,finally语句。
}
我的类的方法为: public boolean setCommentFlowFlag (String value,String modid){
boolean flag=false;
String sql="update module set commentflag=? where moduleid=?";
try {
conn = dbutil.getConnection(); //conn,pst,dbutil已经在类中声明是实例变量
pst = conn.prepareStatement(sql);
pst.setString(1, value);
pst.setString(2,modid);
int i = pst.executeUpdate(sql);
if(i!=0)
flag=true;
return flag;
}
.........省略相关catch,finally语句。
}
怎么那么长时间??
执行这个能返回值吗?
update module set commentflag=‘1’ where moduleid=113"