Handling Hierarchy Data in Database

后端 未结 6 1842
面向向阳花
面向向阳花 2021-02-03 14:05

I\'m curious to know what the best way (best practice) to handle hierarchies are in regards to database design. Here is a small example of how I usually handle them.

6条回答
  •  傲寒
    傲寒 (楼主)
    2021-02-03 14:16

    I'd definitely recommend nested sets. They are great.

    http://threebit.net/tutorials/nestedset/tutorial1.html http://www.dbmsmag.com/9603d06.html

提交回复
热议问题