Waarom niet: UPDATE 'recursive' SET 'parent_id' = NULL WHERE 'parent_id' IS NOT NULL; DELETE FROM 'recursive'; ?