当前位置:网站首页>The data in the database table recursively forms a closed-loop data. How can we get these data
The data in the database table recursively forms a closed-loop data. How can we get these data
2022-07-01 14:47:00 【CSDN Q & A】

First of all, there is a table in the database , There are two key fields ,targetIden and srcIden, These two fields are used to mark a relational data that can theoretically be used as a parent-child , Can be interpreted as targetIden Is the parent node data ,srcIden Is the child node data , As shown in the figure , Suppose you insert a piece of data ( Ending with …55 and …411 The data of , Recursively form a closed loop with the data in the table ), How can we get all the closed-loop data like recursion ,sql Can grammar be realized
Take the answer :
The title owner is now using IDE yes DBeaver Right , It's best to talk about what database you use , About recursive processing , The processing methods of various databases may be different , Need specific analysis , in addition , What will the final data show like ? Two fields , One is the smallest child node , In the other field, are all the parent nodes up this child node ?
边栏推荐
- 一波三折,终于找到src漏洞挖掘的方法了【建议收藏】
- What problems should be considered for outdoor LED display?
- What value can NPDP bring to product managers? Do you know everything?
- Mongodb second call -- implementation of mongodb high availability cluster
- 30 Devops interview questions and answers
- Research Report on the development trend and competitive strategy of the global pipeline robot inspection camera industry
- Research Report on the development trend and competitive strategy of the global CCTV robot industry
- sqlilabs less13
- [15. Interval consolidation]
- How to view the state-owned enterprises have unloaded Microsoft office and switched to Kingsoft WPS?
猜你喜欢

JVM performance tuning and practical basic theory part II

Minimum spanning tree and bipartite graph in graph theory (acwing template)

关于重载运算符的再整理

Chapter 4 of getting started with MySQL: creation, modification and deletion of data tables

2022-2-15 learning xiangniuke project - Section 4 business management

Summary of leetcode's dynamic programming 5

Fundamentals of C language

Basis of target detection (NMS)
![[getting started with Django] 13 page Association MySQL](/img/78/cbf88ae3c3d311edd7d9af8c985749.jpg)
[getting started with Django] 13 page Association MySQL "multi" field table (check)

In hot summer, please put away this safe gas use guide!
随机推荐
如何看待国企纷纷卸载微软Office改用金山WPS?
Salesforce, Johns Hopkins, Columbia | progen2: exploring the boundaries of protein language models
Leetcode(69)——x 的平方根
问题随记 —— Oracle 11g 卸载
[15. Interval consolidation]
Basic operation of database
The first word of JVM -- detailed introduction to JVM and analysis of runtime data area
Mongodb second talk - - mongodb High available Cluster Implementation
Research Report on the development trend and competitive strategy of the global navigation simulator industry
[leetcode 324] swing sorting II thinking + sorting
[dynamic programming] interval dp:p1005 matrix retrieval
【14. 区间和(离散化)】
MongoDB第二话 -- MongoDB高可用集群实现
建立自己的网站(14)
sqlilabs less-11~12
定了!2022海南二级造价工程师考试时间确定!报名通道已开启!
[零基础学IoT Pwn] 复现Netgear WNAP320 RCE
About the use of HTTP cache validation last modified and Etag
Some thoughts on software testing
JVM第一话 -- JVM入门详解以及运行时数据区分析