我有三张桌子。
Person (id, FirstName, LastName, BirthDate)
Contact (id, contact, type)
PersonContact( Person_id, Contact_id )
如您所见, Person_id 来自 PersonContact 表中的 Person 表,而 Contact_id 来自 PersonContact 表中的 Contact 表
我想编写一个查询,该查询应将 PersonContact 表的 Person_id 列与 Person 表的 id 列关联为外键。
PersonContact 的 Contact_id 列,以 Contact 表的 id 列作为外键