Shifting hierarchyid set
问题 I have a table that contains a set of values and a hierarchyid column. Looks something like this: +-----+-------------+-----------+ | ID | HierarchyID | Name | HierarchyID.ToString() for clarity +-----+-------------+-----------+ | 1 | 0x58 | Testing | /1/ | 2 | 0x5AC0 | TChild1 | /1/1 | 3 | 0x5AD6 | TChild1.1 | /1/1/1 | 4 | 0x5ADA | TChild1.2 | /1/1/2/ | 5 | 0x68 | Example | /2/ | 6 | 0x6AC0 | EChild1 | /2/1 | ... | ... | ... | +-----+-------------+-----------+ However, we are introducing a