当前位置:网站首页>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 ?
边栏推荐
- 这3款在线PS工具,得试试
- Error-tf. function-decorated function tried to create variables on non-first call
- [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
- 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
- Summary of leetcode's dynamic programming 5
- 使用net core 6 c# 的 NPOI 包,讀取excel..xlsx單元格內的圖片,並存儲到指定服務器
- 数字化转型:数据可视化赋能销售管理
- sqlilabs less-11~12
- 【15. 区间合并】
- Research Report on development trend and competitive strategy of global consumer glassware industry
猜你喜欢

2022-2-15 learning xiangniuke project - Section 1 filtering sensitive words

sqlilabs less10

JVM second conversation -- JVM memory model and garbage collection

关于重载运算符的再整理

数据湖系列之一 | 你一定爱读的极简数据平台史,从数据仓库、数据湖到湖仓一体

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

Salesforce, Johns Hopkins, Columbia | progen2: exploring the boundaries of protein language models

Leetcode (69) -- square root of X

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

In hot summer, please put away this safe gas use guide!
随机推荐
Details of appium key knowledge
What problems should be considered for outdoor LED display?
Day-02 database
Research Report on the development trend and competitive strategy of the global pipeline robot inspection camera industry
首届技术播客月开播在即
官宣:Apache Doris 顺利毕业,成为 ASF 顶级项目!
[零基础学IoT Pwn] 复现Netgear WNAP320 RCE
Research Report on the development trend and competitive strategy of the global high temperature label industry
Blog recommendation | in depth study of message segmentation in pulsar
Research Report on the development trend and competitive strategy of the global navigation simulator industry
对于编程思想和能力有重大提升的书有哪些?
JVM second conversation -- JVM memory model and garbage collection
NPDP产品经理国际认证报名有什么要求?
Research Report on the development trend and competitive strategy of the global traditional computer industry
MIT团队使用图神经网络,加速无定形聚合物电解质筛选,促进下一代锂电池技术开发
从零开发小程序和公众号【第三期】
Research Report on the development trend and competitive strategy of the global aviation leasing service industry
Zabbix API与PHP的配置
Research Report on the development trend and competitive strategy of the global powder filling machine industry
JVM第二话 -- JVM内存模型以及垃圾回收