2、表B是主键表(Primary Key Table),表A是外建表(Foreign Key Table); 3、由于“ab”在表A中是非主键字段,所以可以重复出现,也就形成了A-B之间的1-N关系;
基于12个网页-相关网页
Say your database schema contains three primary key table columns named "list_id", "ListId", and "list_value".
比方说你的数据库模式中包含三个作为主键的表列,分别命名为“list _ id ”、“ ListId ”和“ list _ value ”。
The primary key table contains only one record that relates to none, one, or many records in the related table. This is the most commonly used type of relationship.
主键表的一个记录,关联到关联表中,存在,没有,或者有一个,或者多个记录。这是最重要的也是最常见的关系。
For foreign key creation, another table with a primary key with a compatible data type is required.
对于创建外键,则需要另外一个具有主键的表,且该主键具有兼容的数据类型。
应用推荐