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

通常情況都是標點弄錯了,或是位置不對,只要仔細檢查就會找到問題的所在。

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM