preparedStatement.executeUpdate(sql);
出现:ORA-01008: 并非所有变量都已绑定
解决方法:
去掉其中的sql语句,因为会覆盖先前的语句;
preparedStatement.executeUpdate();
参考:http://bbs.youkuaiyun.com/topics/390397681
本文介绍了一个常见的Oracle数据库错误ORA-01008:并非所有变量都已绑定的问题及其解决方案。通过调整PreparedStatement的使用方式,即去掉sql语句并直接调用executeUpdate()方法来解决该问题。
preparedStatement.executeUpdate(sql);
出现:ORA-01008: 并非所有变量都已绑定
解决方法:
去掉其中的sql语句,因为会覆盖先前的语句;
preparedStatement.executeUpdate();
参考:http://bbs.youkuaiyun.com/topics/390397681

被折叠的 条评论
为什么被折叠?