原因:问号个数和PreparedStatement预处理传的参数个数不一样如不写最后的执行命令pstm.executeQuery(),这种情况不会报任何错黑色头发:http://heisetoufa.iteye.com/