Skip to main content

mysql - The Nested Set Model Unlimited depth? -


http://mikehillyer.com/articles/managing-hierarchical-data-in-mysql/

in article above wash shown table:

1 ( electronics

2( parent 3(some item )5 ) 10

15( parent 16( item)17 )18

) 20

i don't understand how can unlimited depth if limits set 1 20 parent , depth betwen numbers limited can see, when create table , insert many records, , don't know depth be, need set left 1, , right 1,000,000 ??? have conditionally unlimited depth? o_o

mysql - nested set model unlimited depth? - stack overflow

learn, share, build

each month, on 50 million developers come stack overflow learn, share knowledge, , build careers.

join world’s largest developer community.

sign up

http://mikehillyer.com/articles/managing-hierarchical-data-in-mysql/

in article above wash shown table:

1 ( electronics

2( parent 3(some item )5 ) 10

15( parent 16( item)17 )18

) 20

i don't understand how can unlimited depth if limits set 1 20 parent , depth betwen numbers limited can see, when create table , insert many records, , don't know depth be, need set left 1, , right 1,000,000 ??? have conditionally unlimited depth? o_o

share|improve question
    
or how can insert records without knowledge of how many parent or children be? going left right how can this? beginning id 1, values of left , right??? – mister php jul 6 '12 @ 22:31
    
can explain??? – mister php jul 6 '12 @ 23:21

your answer

 
discard

posting answer, agree privacy policy , terms of service.

browse other questions tagged or ask own question.


Comments

Popular posts from this blog

javascript - backbone.js Collection.add() doesn't `construct` (`initialize`) an object -

php - Get uncommon values from two or more arrays -

Adding duplicate array rows in Php -