java链接JDBC中的?问题
摘要:
String sql = "select * from student where name= ?"; PreparedStatement pst = conn.prepareStatement(sql); pst.setString(1,n); ResultSet result = pst.executeQuery( sql);第一句感觉没问题呀。。。。可是为啥??com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: You have an error in your SQL syntax; chec... 阅读全文
posted @ 2014-04-08 14:41 邗影 阅读(218) 评论(0) 推荐(0) 编辑