当前位置:网站首页>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 ?
边栏推荐
- 微服务大行其道的今天,Service Mesh是怎样一种存在?
- Cannot link redis when redis is enabled
- MongoDB第二話 -- MongoDB高可用集群實現
- After twists and turns, I finally found the method of SRC vulnerability mining [recommended collection]
- 券商万1免5证券开户是合理安全的吗,怎么讲
- NPDP产品经理国际认证报名有什么要求?
- 期末琐碎知识点再整理
- Research Report on development trend and competitive strategy of global vibration polishing machine industry
- [leetcode 324] swing sorting II thinking + sorting
- About the use of HTTP cache validation last modified and Etag
猜你喜欢
![[Verilog quick start of Niuke question series] ~ use functions to realize data size conversion](/img/e1/d35e1d382e0e945849010941b219d3.png)
[Verilog quick start of Niuke question series] ~ use functions to realize data size conversion

What are the books that have greatly improved the thinking and ability of programming?

241. 为运算表达式设计优先级

建立自己的网站(14)

643. Maximum average number of subarrays I

Blog recommendation | in depth study of message segmentation in pulsar

对于编程思想和能力有重大提升的书有哪些?

Don't want to knock the code? Here comes the chance

2022-2-15 learning the imitation Niuke project - Section 3 post details

互联网医院系统源码 医院小程序源码 智慧医院源码 在线问诊系统源码
随机推荐
qt捕获界面为图片或label显示
[Verilog quick start of Niuke question series] ~ use functions to realize data size conversion
Internet hospital system source code hospital applet source code smart hospital source code online consultation system source code
sqlilabs less10
Word2vec yyds dry goods inventory
【阶段人生总结】放弃考研,参与到工作中,已经顺利毕业了,昨天刚领毕业证
互联网医院系统源码 医院小程序源码 智慧医院源码 在线问诊系统源码
Quelle valeur le pdnp peut - il apporter aux gestionnaires de produits? Vous savez tout?
[14. Interval sum (discretization)]
JVM performance tuning and practical basic theory part II
C learning notes (5) class and inheritance
关于软件测试的一些思考
适合没口才的人做,加入中视频伙伴计划收益是真香,一个视频拿3份收益
[dynamic programming] interval dp:p1005 matrix retrieval
使用net core 6 c# 的 NPOI 包,读取excel..xlsx单元格内的图片,并存储到指定服务器
Research Report on the development trend and competitive strategy of the global CCTV robot industry
[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
sqlilabs less9
微服务大行其道的今天,Service Mesh是怎样一种存在?
Build your own website (14)