Home > Backend Development > PHP Tutorial > mysql图片数据库怎么设计

mysql图片数据库怎么设计

WBOY
Release: 2016-06-13 09:59:51
Original
1311 people have browsed it

mysql图片数据库如何设计
一部电影有多张图片,图片数量是不确定的,请问mysql数据库该如何设计

------解决方案--------------------
两个表,一对多,一个表存电影名,一个电影名对应另一个表中的多张图片
------解决方案--------------------
呵呵 图片字段可以就一个
然后如果多个图片的话 可以用一个特殊符号隔开
比如:图片名1|图片名2|图片名3
然后用explode函数就可以了

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