Home > Backend Development > PHP Tutorial > 表关联的有关问题

表关联的有关问题

WBOY
Release: 2016-06-13 12:39:13
Original
819 people have browsed it

表关联的问题
如下有三个表,分别是专辑表、产品表、图片表。
要求:专辑能同时存入产品和图片。
请问要怎么表达这三者的关系?

我分析了一下,专辑和产品是多对多的关系,专辑和图片也是多对多的关系。
难道要设计两个中间表吗?

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template