java.sql.SQLException: Statement.executeQuery() cannot issue statements that do not produce result

 java.sql.SQLException: Statement.executeQuery() cannot issue statements that do not produce result sets.解决

看看自己的java代码里的 sql语句的 select是不是写错了! 

我把select写成了selsct!!!!

//定义sql
String sql="select * from tb_user where u_name=? and p_word=?";

 

你可能感兴趣的:(日常错误解决,sql,java,issue)