外键的用途和目的 [英] use and purpose of foreign key

查看:55
本文介绍了外键的用途和目的的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何使用外键和外键的目的是什么。

Plz解释为初学者级别。在此先感谢....

解决方案

外键是一个字段,您将其置于实体模型(表定义)中,以将其用作指向相同或不同种类的其他实体(行)(表)。通常,外键字段包含被引用实体的主键字段的值。



Google是你的朋友。首先阅读: http://www.functionx.com/sql/Lesson11.htm [ ^ ]


http:// www。 w3schools.com/sql/sql_foreignkey.asp [ ^

How to use foreign key and what is the purpose of foreign key.
Plz explain as for beginner level. Thanks in advance....

解决方案

A foreign key is a field, that you place in an entity model (table definition) to use it as a link to an other entity (row) of the same or different kind (table). Usually the foreign key field contains the value of the primary key field of the referred entity.

Google is your firend. Read this first:
http://www.functionx.com/sql/Lesson11.htm[^]


http://www.w3schools.com/sql/sql_foreignkey.asp[^]


这篇关于外键的用途和目的的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆