我收到一个错误,其中显示 SQL Exception: java.sql.SQLException: No data found,我似乎无法在这里找到问题。请帮助我,抱歉问。
try{
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
String url = "jdbc:odbc:ict11";
Connection con = DriverManager.getConnection(url);
Statement statement = con.createStatement();
statement.executeUpdate( "DELETE from Employee where EmployeeID ="+txtId.getText()+"" );
statement.close();
con.close();
JOptionPane.showMessageDialog(rootPane, "Successfully Deleted");
}
catch(Exception e){
JOptionPane.showMessageDialog(null, e);
}