错误:
捕获的异常:java.sql.SQLException:不正确的整数值:'[Ljava.lang.String;@26fd19c6' for column 'dedId' at row 1 无法连接数据库
程序:
public void updateDeduction(int empId, String[] dedId, String dedName, String dedDate, String dedAmount) throws SQLException{
stmt = conn.createStatement();
String updateString="INSERT INTO deductions (empId,dedId,dedName,dedDate,dedAmount) VALUES (";
updateString +="'"+empId+"', ";
updateString +="'"+dedId+"', ";
updateString +="'"+dedName+"', ";
updateString +="'"+dedAmount+"', ";
updateString +="CURDATE())" ;
stmt.executeUpdate(updateString);
return;
}