update blade_employee_training_record_detail a,blade_employee_training_user_dept b set a.dept_name=b.user_dept where a.user_name=b.user_name