Friday, March 9, 2012

possible to move nodes in Nested Set Model?

Hi,
i work with the Nested Set Model and my question is, does anybody know if it is possible to move nodes inside this Nested Set Model, and if it is possible, if there is an example.
thanks in advice
deviant69Yes. Joe Celko published an example in his SQL For Smarties book, and I think it might be in one of his online columns too.

-PatP|||i tried to find some example in the internet, but there isn't. i found lots of examples for convertig, inserting and deleting, but no example for moving.

but thanks for the advice, i will look out for the book.
deviant69|||Isn't a move just a shorthand for a delete and an insert?|||you can delete and insert, but that would mean that u have to store the data somewhere. sure, i think there is a possibility to handle it that way, but finally i found another way to handle the movements. :)

deviant69

No comments:

Post a Comment