码上敲享录 > sql增删改查之常见报错异常解答 > nested exception is java.sql.SQLException: Parameter index out of range (0 < 1 ).

nested exception is java.sql.SQLException: Parameter index out of range (0 < 1 ).

上一章章节目录下一章 2020-06-27已有1562人阅读 评论(0)

nested exception is java.sql.SQLException: Parameter index out of range (0 < 1 ).


解决方法:

java的PreparedStatement给sql的问号?设置时ps.setString(i, value);i应该从1开始而不是0



向大家推荐《Activiti工作流实战教程》:https://xiaozhuanlan.com/activiti
0

有建议,请留言!

  • *您的姓名:

  • *所在城市:

  • *您的联系电话:

    *您的QQ:

  • 咨询问题:

  • 提 交