nested-sets
How to get structed result using nested set in MySQL and PHP?
There is no limitation on the 开发者_运维技巧depth. How to get the structured branch or even entire tree?[详细]
2022-12-26 12:24 分类:问答introduce a join to this query, possible?
I\'m trying to introduce a join to this query: SELECT `n`.*, round((`n`.`rgt` - `n`.`lft` - 1) / 2, 0) AS childs,[详细]
2022-12-25 20:28 分类:问答Nested routing in Ruby on Rails
My model class is: class Category < ActiveRecord::Base acts_as_nested_set has_many :children, :foreign_key => \"parent_id\", :class_name => \'Category\'[详细]
2022-12-25 02:40 分类:问答Can someone describe the nested set model from a C#/LINQ perspective?
I know the nested set model doesn\'t pertain to the C# language or LINQ directly... it\'s what I\'m using to develop my web app.[详细]
2022-12-23 15:40 分类:问答PHP Doctrine ORM NestedSet
although I read through the manual here: http://www.doctrine-project.org/documentation/manual/1_2/hu/hierarchical-data[详细]
2022-12-22 17:44 分类:问答Is it considered bad design to combine the adjancey list model and the nested sets model?
I\'m working on building a tree structure in MySQL and have been experimenting with different ways of representing the data.However, no matter how I slice it, there are shortcomings.[详细]
2022-12-21 12:37 分类:问答Weighted nested set
Are there any gems or plugins tha开发者_如何学编程t offer a nested set but with a weight also.[详细]
2022-12-20 04:14 分类:问答Query to search tree in database
I have a table in my database representing a tree. The data is stored using nested sets. I want to write a query to search the tree and return just the nodes that match a pattern, along with their anc[详细]
2022-12-19 08:20 分类:问答Nested Set Model: Inserting Node at the end of SubNodes
Existing Data (name, lft, rgt): Root, 1, 4 Item1, 2, 3 Looks like: - Root --- Item1 How do you insert a new node (Item2) BELOW Item1?My system\'s current logic follows most examples I\'ve found[详细]
2022-12-19 06:45 分类:问答Ruby on Rails - Awesome nested set plugin
Is there a simple way to display the entire nested set when using this plugin? What I would like to do is displa开发者_如何转开发y an unordered list of root nodes with another unordered list inside ea[详细]
2022-12-16 20:28 分类:问答