认定中的超密钥和维基百科中的主键的当我们可以通过主键唯一识别一个元组时,为什么需要superkey?
A superkey is a set of attributes within a table whose values can be used to uniquely identify a tuple.
和
The primary key has to consist of characteristics that cannot be duplicated by any other row. The primary key may consist of a single attribute or a multiple attributes in combination.
我已经经历了很多书不见了,冲浪互联网上,但我在他们发现的是
what is primarykey and what is superkey
但是我想知道的是为什么当我们可以通过primarykey唯一地识别一个元组时,为什么需要superkey?
在此先感谢。
可能重复[超级键和候选键之间的区别是什么?](http://stackoverflow.com/questions/4519825/what-are-the-differences-between-a-superkey-and-a -candidate-key) –
我已经提到我知道主键和超键是什么,但我想知道的是他们进化背后的原因,当我们已经有一个可以唯一标识元组的键时,我们为什么需要另一个。 –