摘要 |
PROBLEM TO BE SOLVED: To provide a program that, in a database having a tree structure, can construct the tree structure at high speed.SOLUTION: Each node of a database having a tree structure is stored in a predetermined storage area as a record having a root node, a parent node, hierarchy information, and sort information in a field. By sorting on the basis of the sort information of a plurality of stored records, the original tree structure can be constructed, thereby enabling fast and easy construction of the tree structure without tracing the tree structure by recursive processing. |