INSERT INTO authority_user( user_id, managed_user_id ) VALUES ( #{userId}, #{managedUserId} ) DELETE FROM authority_user WHERE user_id = #{userId}