0
成像我有3個表,人,男孩,女孩主義一個表由多個表引用,我怎麼能得到參考記錄不帶開關
table person{
id
...}
table boy{
id,
foreign key a_id= a.id, one to one,
description,
...
}
table girl{
id,
foreign key a_id= a.id, one to one,
description,
...
}
表的人只能由男孩或女孩引用一次。如果現在我得到一個人的身份證,我怎樣才能快速獲得男孩/女孩的信息,而不試圖啓動一個男孩和一個女孩?導致我的問題是我有這麼多的桌子人蔘考的表,如果將太長。