本文主要是介绍java.sql.SQLException: Wrong number of parameters: expected 0, was given 1 Query: delete from acc...,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
java.lang.RuntimeException: java.sql.SQLException: Wrong number of parameters: expected 0, was given 1 Query: delete from account where id = ? Parameters: [3]
字面意思:参数数目错误:应为0,但给出的是1查询
java.sql.SQLException:肯定是SQL语句写错了!然而我找半天,觉得并没有什么毛病。。。
出去呼吸口新鲜空气,回来后我发现:这不就是输入法问题嘛,问号写成中文的了。。。改成英文的就行了
这篇关于java.sql.SQLException: Wrong number of parameters: expected 0, was given 1 Query: delete from acc...的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!