-1
PreparedStatement codePull = (PreparedStatement) con.prepareStatement("SELECT tanCode FROM `tancodes` WHERE (tanIndex= "+Tindex+")");
ResultSet DbTcode = codePull.executeQuery();
String answer = DbTcode.getString("");
return answer;
這是我使用的代碼,但問題是,我得到一個錯誤,指出: ERR:值java.sql.SQLException:列「」未找到。錯誤的MySQL
但我可以看到它確實存在於表中!
關於如何解決它的任何想法?
//我試過了,但發生了同樣的錯誤! –
哦,我非常感謝:D –