insert into teacherteam_system.teacher(id, name, profile, image, gradaute_course, undergradaute_course, email, phone_number)
VALUES
(#{id},#{name},#{profile},#{image},#{gradauteCourse},#{undergradauteCourse},#{email},#{phoneNumber})
insert into teacherteam_system.patent(patent_num, authorization_num, certificate_num, date, teacher_id)
values
( #{pa.patentNum},
#{pa.authorizationNum},
#{pa.certificateNum},
#{pa.date},
#{pa.teacherId})
update teacherteam_system.teacher
name= #{name},
profile= #{profile},
image= #{image},
gradaute_course= #{gradauteCourse},
undergradaute_course= #{undergradauteCourse},
email= #{email},
phone_number= #{phoneNumber},
research_field = #{researchField}
where id = #{id}
delete from teacherteam_system.patent
where teacher_id = #{id}