当前位置:Gxlcms > 数据库问题 > 问题:java.sql.SQLException: No value specified for parameter 1

问题:java.sql.SQLException: No value specified for parameter 1

时间:2021-07-01 10:21:17 帮助过:142人阅读

= req.getParameter("pwd"); Connection conn = DbUtil.getCon(); String sql = "select name from user where name=? and password=?"; PreparedStatement pst = conn.prepareStatement(sql); pst.setString(1, user); pst.setString(2, pwd);

 

问题:java.sql.SQLException: No value specified for parameter 1

标签:red   ram   col   exce   问题   strong   sele   pst   解决   

人气教程排行