如何建立和使用自引用层次结构表

目录sql 介绍数据结构 背景ide 选择孩子函数 表值函数spa 兴趣点code 介绍 在SQL表中表示组织结构可能很棘手。一种方法是在标识父子关系的表中使用自引用键。对象 能够引用为:blog 自引用数据结构递归 ID索引 RefId Name 1 null Root 2 1 Customer1 3 1 Customer2 4 1 Customer3 5 2 Dept 1.1 6 2 Dept
相关文章
相关标签/搜索