check the manual that corresponds to your MySQL server version for the right syntax to use near '=4'
今天在写sql动态查询DOMO时出现如下错误:
Parameter index out of range (1 > number of parameters, which is 0).
检查发现错误发生在22行,代码为:
**ps=con.prepareStatement("select *from tab_stu" + "where 编号 = ?");**
仔细观察发现是“?”的原...
原创
2019-03-17 11:29:06 ·
576 阅读 ·
0 评论