当前位置:网站首页>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 ?
边栏推荐
- Research Report on the development trend and competitive strategy of the global high temperature label industry
- 写在Doris毕业后的第一天
- C learning notes (5) class and inheritance
- 网速、宽带、带宽、流量三者之间的关系是什么?
- Research Report on the development trend and competitive strategy of the global facial wrinkle removal and beauty instrument industry
- Research Report on the development trend and competitive strategy of the global navigation simulator industry
- 如何看待国企纷纷卸载微软Office改用金山WPS?
- Provincial election + noi Part 10 probability statistics and polynomials
- Music player development example (can be set up)
- 职场太老实,总被欺负怎么办?
猜你喜欢

Leetcode (69) -- square root of X
![[15. Interval consolidation]](/img/6c/afc46a0e0d14127d2c234ed9a9d03b.png)
[15. Interval consolidation]

Music player development example (can be set up)

sqlilabs less-8

Internet hospital system source code hospital applet source code smart hospital source code online consultation system source code

Fundamentals of C language

One of the first steps to redis

建立自己的网站(14)

C learning notes (5) class and inheritance

定了!2022海南二级造价工程师考试时间确定!报名通道已开启!
随机推荐
phpcms实现订单直接支付宝支付功能
[14. Interval sum (discretization)]
Salesforce, Johns Hopkins, Columbia | progen2: exploring the boundaries of protein language models
Blog recommendation | in depth study of message segmentation in pulsar
从零开发小程序和公众号【第三期】
[Verilog quick start of Niuke series] ~ multi function data processor, calculate the difference between two numbers, use generate... For statement to simplify the code, and use sub modules to realize
Phpcms realizes the direct Alipay payment function of orders
Today, with the popularity of micro services, how does service mesh exist?
[dynamic programming] p1004 grid access (four-dimensional DP template question)
适合没口才的人做,加入中视频伙伴计划收益是真香,一个视频拿3份收益
What problems should be considered for outdoor LED display?
One of the data Lake series | you must love to read the history of minimalist data platforms, from data warehouse, data lake to Lake warehouse
What are the requirements for NPDP product manager international certification registration?
[Verilog quick start of Niuke question series] ~ use functions to realize data size conversion
[leetcode 324] 摆动排序 II 思维+排序
对于编程思想和能力有重大提升的书有哪些?
Details of appium key knowledge
微服务开发步骤(nacos)
关于软件测试的一些思考
Research Report on the development trend and competitive strategy of the global axis measurement system industry