【发布时间】:2016-06-15 23:20:45
【问题描述】:
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: 列 '' 未找到。
但我可以看到它确实存在于表格中!
关于如何解决它的任何想法??
【问题讨论】:
标签: java mysql database exception xampp