private void deleteStudent() {
String getAccount = this.maf_t17.getText();
String sql1 = "";
String sql = "delete from tb_logging where account = " + getAccount + "";
if (this.deleteJudgeStudent()) {
try {
this.stam.executeUpdate(sql); //显示这行出现bug!!!!
JOptionPane.showMessageDialog((Component)null, "删除成功!", "提示", 2);
} catch (SQLException var5) {
var5.printStackTrace();
}
} else {
JOptionPane.showMessageDialog((Component)null, "未找到该账号", "提示", 2);
}
}
显示com.microsoft.sqlserver.jdbc.SQLServerException: 在将 varchar 值 'y-1 ' 转换成数据类型 int 时失败。