.
这是我的代码。我尝试更新一个表,另一个表受到影响。
String update_sql = "UPDATE EMPLOYEES SET FIRST_NAME=?, LAST_NAME=?, EMAIL=?, PHONE_NUMBER=?, HIRE_DATE=?, JOB_ID=?, MANAGER_ID=?, DEPARTMENT_ID=? WHERE EMPLOYEE_ID=?";
PreparedStatement ps_one = connection.prepareStatement(update_sql);
ps_one.setString(1, FirstName);
ps_one.setString(2, LastName);
ps_one.setString(3, Email_final);
ps_one.setString(4, PhoneNumber);
ps_one.setDate(5,sqlDate);
ps_one.setString(6, Job);
ps_one.setInt(7, Manager_final);
ps_one.setInt(8, Department_final);
ps_one.setInt(9, id_final);
ps_one.executeUpdate();
我从另一张桌子那里得到了这个错误。