Re: several pointers to records in one field

From: Date: Mon, 17 Mar 2003 22:17:23 +0000
Subject: Re: several pointers to records in one field
References: 1 2 3  Groups: php.db 
Request: Send a blank email to php-db+get-26431@lists.php.net to get a copy of this message
> Thank You. Tell me if I misunderstood or if I did not express me > clearly. Sounds like you got it! :) You may also want to read up on nested sets for your database structure. They work the parent_id and child_id differently and it may make queries easier for your situation. For instance, with nested sets, you can easily find out everyone that decended from a single person with one query. Doing that with the parent_child solution can take many queries. However, inserting is more demanding with nested sets, but if you're not going to do a whole lot of inserting after the database is populated, then it may be for you. Here's one explanation... search for others: http://threebit.net/tutorials/nestedset/tutorial1.html#t ---John Holmes...

« previous php.db (#26431) next »