运行时报此错误ORA-00933: SQL command not properly ended,
public int Rst(String names){
this.name=names;
String into="update tb_roes set row133='"+rsbn.getId33()+"',row134='"+rsbn.getId34()+"'" +
"row135='"+rsbn.getId35()+"',row136='"+rsbn.getId36()+"',row137='"+rsbn.getId37()+"'," +
"row138='"+rsbn.getId38()+"',row139='"+rsbn.getId39()+"',row140='"+rsbn.getId40()+"',row141='"+rsbn.getId41()+"'," +
"row142='"+rsbn.getId42()+"' where pername='"+this.name+"'";
//System.out.println(into);
try{
a=con.executeUpdate(into);
//System.out.println("a:"+a);
}catch(Exception ee){
System.out.println(ee.getStackTrace()+"11111111111");
}
return a;
} 在数据库里面执行sql语句是对的
public int Rst(String names){
this.name=names;
String into="update tb_roes set row133='"+rsbn.getId33()+"',row134='"+rsbn.getId34()+"'" +
"row135='"+rsbn.getId35()+"',row136='"+rsbn.getId36()+"',row137='"+rsbn.getId37()+"'," +
"row138='"+rsbn.getId38()+"',row139='"+rsbn.getId39()+"',row140='"+rsbn.getId40()+"',row141='"+rsbn.getId41()+"'," +
"row142='"+rsbn.getId42()+"' where pername='"+this.name+"'";
//System.out.println(into);
try{
a=con.executeUpdate(into);
//System.out.println("a:"+a);
}catch(Exception ee){
System.out.println(ee.getStackTrace()+"11111111111");
}
return a;
} 在数据库里面执行sql语句是对的
解决方案 »
- 一个applet应用程序,结果输出时"\n"换行不去作用,且appletviewer窗口有乱码,怎样解决
- 哪位大哥有完整一点简单一点的扫雷程序给小弟发一个.多谢!
- List与ArrayList有何区别?
- 两个面试题目与解答,我的观点,可以探讨不同观点
- java中有类似于Assert(A!= null)的语句吗?
- 请问java程序中如何调用HLP或者chm文件?
- 用过JCreator的进来看一下。
- 高分征求修改方案:关于TextListener!!!
- helloworld java初学
- 占用一下,小弟想到深圳发展,有一年JAVA开发经验,熟悉oracle数据库,哪位在深圳的兄弟帮忙介绍个工作,我的QQ:9182647,谢谢了!
- swing 怎样实现动态替换区域内容?
- 如何覆盖txt文件中的内容
貌似row134 row135之间没有逗号啊row141
row142之间