表中有多少主要的外键使用? [英] how many primary ,foregin key use in a table?

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

问题描述

表中使用了多少个主要的外包密钥?

推荐答案

你的问题不太清楚,但是我会尝试给你一些答案......

任何给定的表可以是一个,只有一个主键,并且该键永远是唯一的...

外键是从THIS表指向OTHER表的主键的键。从理论上讲,您可以拥有任意数量的外键,但建议您不要超过253 ......

请参阅此表有关SQL的功能:https://msdn.microsoft.com/en-us/library/ms143432(v=sql.105)。 aspx [ ^ ]
Your question is not too clear, however I will try and give you some answers...
Any given table can be one, and only one, primary key, and that key will always be unique...
A foreign key is a key that point from THIS table to a primary key of an OTHER table. In theory you can have as many foreign keys as you want, but it is recommended that you do not exceed 253...
See this table about capabilities of SQL:https://msdn.microsoft.com/en-us/library/ms143432(v=sql.105).aspx[^]


sql server capacity specifications [ ^ ]



这表明您可以使用无限制的forgein键,但建议不要超过253。
sql server capacity specifications [^]

This shows that you can have unlimited forgein keys but are recommended not to exceed over 253.


这篇关于表中有多少主要的外键使用?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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