这两种关系之间的区别

时间:2020-05-25 13:53:18

标签: postgresql

这里有很多菜鸟。这两种购物网站模式有什么区别。

通常我使用这种模式。

enter image description here

我在这里看到了这个(https://github.com/ramortegui/e-commerce-db

enter image description here

我应该继续使用第一个还是更改为第二个。有什么好处吗?

2 个答案:

答案 0 :(得分:1)

在示例1中,每个产品只能具有一个类别。 示例2允许每个产品多个类别。

答案 1 :(得分:1)

为了让您更好地理解,

enter image description here