Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re: storing tree-like structures in tables

by Anonymous Monk
on Sep 11, 2002 at 14:30 UTC ( [id://196952]=note: print w/replies, xml ) Need Help??


in reply to storing tree-like structures in tables

Joe Celko routinely recommends a nested set construction for this problem. Here is an explanation. Or search for more articles on it.
  • Comment on Re: storing tree-like structures in tables

Replies are listed 'Best First'.
Re^2: storing tree-like structures in tables
by adrianh (Chancellor) on Nov 28, 2002 at 11:52 UTC

    There is now a nice perl introduction to this way of representing trees over on oreillynet - just in case anybody's still interested :-)

Re^2: storing tree-like structures in tables
by Anonymous Monk on Feb 08, 2004 at 19:41 UTC
Re^2: storing tree-like structures in tables
by adrianh (Chancellor) on Sep 12, 2002 at 07:27 UTC

    ++ on this. The nested set construction is a really useful technique for representing trees in SQL that I've used several times in the past.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://196952]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others romping around the Monastery: (5)
As of 2024-04-26 08:40 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found