INSERT INTO class_book( book_id, scls_id ) VALUES ( #{bookId}, #{sclsId} ); DELETE FROM class_book WHERE book_id = #{bookId} AND scls_id = #{sclsId}