Welcome to the dBforums forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions, articles and access our other FREE features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload your own photos and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact contact support.

If you prefer not to see double-underlined words and corresponding ads, place your cursor
here for ContentLink opt out.

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, 10: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, 11:34
Pat Phelan Pat Phelan is offline
Resident Curmudgeon
 
Join Date: Feb 2004
Location: In front of the computer
Posts: 9,572
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, 11: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, 07:44
andrewst andrewst is offline
Moderator.
 
Join Date: Sep 2002
Location: UK
Posts: 4,874
Isn't a move just a shorthand for a delete and an insert?
__________________
Tony Andrews
http://tonyandrews.blogspot.com
Reply With Quote
  #5 (permalink)  
Old 06-28-04, 08: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

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