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+"')");

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

 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-12-20
  • 2022-12-23
  • 2021-06-21
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-02-15
  • 2021-06-12
  • 2021-04-07
  • 2021-07-30
  • 2021-10-06
相关资源
相似解决方案