INSERT INTO book_author (book_id, author_id) VALUES (#{bookId}, #{authorId}) DELETE FROM book_author WHERE book_id = #{bookId}