If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > ANSI SQL > possible to move nodes in Nested Set Model?

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 06-25-04, 09:37
deviant69 deviant69 is offline
Registered User
 
Join Date: Jun 2004
Location: Deutschland
Posts: 10
Question 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
deviant69
Reply With Quote
  #2 (permalink)  
Old 06-25-04, 10:34
Pat Phelan Pat Phelan is offline
Resident Curmudgeon
 
Join Date: Feb 2004
Location: In front of the computer
Posts: 12,605
Yes. 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
Reply With Quote
  #3 (permalink)  
Old 06-25-04, 10:44
deviant69 deviant69 is offline
Registered User
 
Join Date: Jun 2004
Location: Deutschland
Posts: 10
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
Reply With Quote
  #4 (permalink)  
Old 06-28-04, 06:44
andrewst andrewst is offline
Moderator.
 
Join Date: Sep 2002
Location: UK
Posts: 5,171
Isn't a move just a shorthand for a delete and an insert?
__________________
Tony Andrews
http://tinyurl.com/tonyandrews
Reply With Quote
  #5 (permalink)  
Old 06-28-04, 07:23
deviant69 deviant69 is offline
Registered User
 
Join Date: Jun 2004
Location: Deutschland
Posts: 10
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
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On