强和弱实体类型的示例
问题描述:
我尝试在Google上查看弱和强实体类型的正确解释,但我还没有完全理解它们。
I've tried to look on Google about a decent explanation of weak and strong entity type, but I haven't fully understood them.
有人可以给我一个强而弱的实体类型的例子吗?
Could someone give me an example of a strong and weak entity type?
答
弱实体是只有当另一个拥有时才存在的实体。例如:ROOM只能存在于BUILDING中。另一方面,TIRE可以被认为是一个强大的实体,因为它也可以存在而不附加到CAR。
A weak entity is one that can only exist when owned by another one. For example: a ROOM can only exist in a BUILDING. On the other hand, a TIRE might be considered as a strong entity because it also can exist without being attached to a CAR.