Parameter index out of range (1 > number of parameters, which is 0)
把3.2sql下面的1改成0 试试
在3.2之前加上conn.setAutoCommit(fasle);
在pst.executeupdate后加conn.commit(),试一下
楼主,你这个代码是修改之后的代码把,问题肯定是String sql="delete from emp where empno=?"; 这个拼接的SQL里面的,使用ue打开看下是否有什么字符的问题