当我有这些表时:
Customer: Customer ID, Customer Name, Customer Surname
Product: Product ID, Product Name, Product Price
CustomerProduct: Customer ID, Product ID
我想制作关系图。我不知道如何设置1 ... 0..m 1..m关系
我会说
Customer 1 ----- 0..m CustomerProduct
Product 1 ------ 0..m CustomerProduct
(通过考虑:客户可以有几种产品, 产品可以有几个客户)
正确?
答案 0 :(得分:0)
Yes, it is a many to many relationship. your data will look like: CustomerProduct: Customer ID Product ID 1 1234 2 3344 1 3344 3 1111 3 1234
这是一对多关系。 您可以参考this来绘制关系图。
HTH!