当前位置:网站首页>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 ?
边栏推荐
- It's suitable for people who don't have eloquence. The benefits of joining the China Video partner program are really delicious. One video gets 3 benefits
- Research Report on the development trend and competitive strategy of the global commercial glassware industry
- Sqlachemy common operations
- About the use of HTTP cache validation last modified and Etag
- En utilisant le paquet npoi de net Core 6 c #, lisez Excel.. Image dans la cellule xlsx et stockée sur le serveur spécifié
- Research Report on the development trend and competitive strategy of the global pipeline robot inspection camera industry
- 241. Design priorities for operational expressions
- Sorting learning sorting
- 首届技术播客月开播在即
- 数据产品经理需要掌握哪些数据能力?
猜你喜欢
随机推荐
2022-2-15 learning the imitation Niuke project - post in Section 2
适合没口才的人做,加入中视频伙伴计划收益是真香,一个视频拿3份收益
Internet hospital system source code hospital applet source code smart hospital source code online consultation system source code
Zabbix API与PHP的配置
30 Devops interview questions and answers
Leetcode(69)——x 的平方根
使用net core 6 c# 的 NPOI 包,读取excel..xlsx单元格内的图片,并存储到指定服务器
Leetcode (69) -- square root of X
Generate random numbers (4-bit, 6-bit)
深度分析数据在内存中的存储形式
[dynamic programming] p1004 grid access (four-dimensional DP template question)
网速、宽带、带宽、流量三者之间的关系是什么?
Websocket (simple experience version)
Research Report on the development trend and competitive strategy of the global pipeline robot inspection camera industry
Problem note - Oracle 11g uninstall
sqlilabs less13
Fundamentals of C language
Reorganize the trivial knowledge points at the end of the term
Advanced C language
Tensorflow 2. X realizes iris classification