Method for obtaining tree structure data from database through single query
A tree structure and database technology, applied in database indexing, electronic digital data processing, structured data retrieval, etc., can solve the problems of iterative dead loop, low query efficiency, etc., to solve iterative dead loop, low query efficiency, Effect of improving efficiency and safety
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment Construction
[0021] In order to make the purpose, technical solution and advantages of the present invention clearer, the technical solution of the present invention will be described in detail below. Apparently, the described embodiments are only some of the embodiments of the present invention, but not all of them. Based on the embodiments of the present invention, all other implementations obtained by persons of ordinary skill in the art without making creative efforts fall within the protection scope of the present invention.
[0022] In either embodiment, if Figure 1-2 As shown, the method for obtaining tree-structured data from a database by a single query of the present invention includes:
[0023] Step 1. Query all the data sets contained in the tree structure in the data table. The queried data must have at least two fields: id and parent id;
[0024] Step 2. Create a new class to save the queried data. The difference between the new object class and the original data object is...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 

