当我执行jdbc语句时,我的java应用程序阻塞了{NOT STOPPED}这是我的java代码
RHsysConnection con = new RHsysConnection();
PreparedStatement connection
= con.getConnection("INSERT INTO `Contrat`(`IdE`, `Type`, `Ddebut`, `Dfin`, `DurreEss`, `Observation`, `EssT`, `ContT`)"
+ "VALUES(? ,? ,? ,? ,? ,? ,? ,?)");
connection.setInt(1, this.IdE);
connection.setString(2, this.type);
connection.setString(3,new SimpleDateFormat("yyyy-MM-dd").format(this.ddebut));
if(this.dfin==null)
connection.setNull(4, java.sql.Types.VARCHAR);
else
connection.setString(4, new SimpleDateFormat("yyyy-MM-dd").format(this.dfin));
connection.setInt(5, this.durreEss);
connection.setString(6, this.observation);
connection.setString(7, this.essT);
connection.setString(8, this.contT);
int executeUpdate = connection.executeUpdate();
但是当我像这样手动设置值时
...
connection.setInt(1, 2);
connection.setString(2, "CDD");
connection.setString(3,"2016-12-12");
connection.setString(4, "2017-12-11");
connection.setInt(5, 1);
connection.setString(6, null);
connection.setString(7, "N");
connection.setString(8, "N");
...
应用程序运行完全相同的帮助