1-- Original:
2UPDATE 'recursive' SET 'parent_id' = NULL WHERE 'parent_id' IS NOT NULL;
3DELETE FROM 'recursive';
4
5-- For Example:
6UPDATE Items
7 SET Items.ParentItemId = NULL
8 WHERE Items.ParentItemId IS NOT NULL;
9DELETE FROM Items;
10-- Or
11TRUNCATE TABLE Items;