如何设计家谱数据库,检索和显示 [英] how to design database for family tree,retrieve and display
本文介绍了如何设计家谱数据库,检索和显示的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何为家谱设计数据库,检索和显示
how to design database for family tree,retrieve and display
推荐答案
我要设置两个表.
[persons_table]
personId(主键),名称,名字和您需要的所有元数据
[relations_table]
personId1,personId2,关系
使用此方法,您在[persons_table]和[relations_table]之间具有1:n关系
正如曼弗雷德(Manfred)在其评论中指出的那样,这是person_table在其自身上的n:m关系.
I would set up two tables.
[persons_table]
personId (primary key), name, firstname and all the meta data you need
[relations_table]
personId1,personId2,relation
With this you have a 1:n relation between [persons_table] and [relations_table]
As Manfred stated in his comment, this is a n:m relation of person_table on itself.
尝试此链接
点击 [
try this link
Click[^]
这篇关于如何设计家谱数据库,检索和显示的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文