JAVA问题String literal is not properly closed by a double-quote

String literal is not properly closed by a double-quote

 

这个错误:string字串没有以双引号结束
String DBURL = "jdbc:oracle:thin:@192.168.1.25:1521:ora10g";
这句最后面少一个双引号

 

 stmt.executeUpdate("INSERT INTO user(account,password,email,qq,phone,address,words)VALUES('"+str1+"','"+str2+"','"+str4+"','"+str5+"','"+str6+"','"+str7+"','"+str8+"')");

通常情况都是标点弄错了,或是位置不对,只要仔细检查就会找到问题的所在。

 

posted @ 2017-09-04 13:43  木&子  阅读(17920)  评论(0编辑  收藏  举报