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