·2,447,543篇论文数据,部分数据来源于NoteExpress
这里我们看到Customer的Address字段映射用表模式文件中的外键引用将关系的两部分链接在一起。
Here we see that the mapping for Customer's Address field links the two halves of the relationship together with the foreign key reference in the table schema file.
如果使用的是MySQL,而且想要为表定义外键,则需要在从数据库中加载模式之后,编写代码定义这些字段。
If you're using MySQL and want to define foreign keys for a table, you'll need to define those fields in code after loading the schema from the database.
星型模式要求生成并适当使用事实表和维表的主键或外键。
The star schemas require the generation and proper use of primary or foreign keys for the fact and dimension tables.
应用推荐