java.sql.SQLException: ORA-01008: 并非所有变量都已绑定
String sql="insert into gdzcxx (id,zcmc,ggxh) values(SEQ_GDZC_ID.nextVAL,?,?)";
Mysqlmysql=newMysql();
try{
mysql.prepareStatement(sql);
mysql.setString(1,gdzcxx.getZcmc());
mysql.setString(2,gdzcxx.getGgxh());
mysql.execute(sql);正确为:mysql.execute();
} catch (SQLException e) {
e.printStackTrace();
}finally{
mysql.freeResource();
}
}