public void updateDeduction(String empId, String dedId, String dedname,String dedamount,String date) throws SQLException{
//update the contributions
stmt = conn.createStatement();
String updateString ="INSERT INTO deductions (empId,dedId,dedName,dedAmount,dedDate) VALUES (";
updateString +="'"+empId+"', ";
updateString +="CURDATE(), " ;
updateString +="'"+dedId+"'";
updateString +="'"+dedname+"', ";
updateString +="'"+dedamount+"')";
stmt.executeUpdate(updateString);
return;
每当我点击扣除选项卡时,我都会收到错误消息,请告诉我该怎么做?