id, category, name, affiliation, dept_name, title, phone, email insert into contact (category, name, affiliation, dept_name, title, phone, email) values (#{category}, #{name}, #{affiliation}, #{deptName}, #{title}, #{phone}, #{email}) update contact set category = #{category}, name = #{name}, affiliation = #{affiliation}, dept_name = #{deptName}, title = #{title}, phone = #{phone}, email = #{email}, updated_at = now() where id = #{id} delete from contact where id = #{id}