Home  >  Article  >  Backend Development  >  请教这种数据库应该如何设计

请教这种数据库应该如何设计

WBOY
WBOYOriginal
2016-06-06 20:37:59733browse

请教这种数据库应该如何设计

请教这种数据库应该如何设计,是所有信息存储到一个字段,还是分表存储,
要求搜索方便

回复内容:

请教这种数据库应该如何设计

请教这种数据库应该如何设计,是所有信息存储到一个字段,还是分表存储,
要求搜索方便

你是想做那种物流单吗?即一份物流单中包含若干物品那种,如果是这样的话就用主从表。
主表一条记录对应一个物流单。从表一条记录对应一个物品,且有外键指向主表id。主从表间为一对多。

Statement:
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