Home > Database > Mysql Tutorial > body text

mysql-加工方建表问题,急用

WBOY
Release: 2016-06-06 09:39:13
Original
1113 people have browsed it

mysql

我现有3张表分别是:原料(Y)、仓储(C)、加工物(G)
他们的关系是:原料Y 进入到 仓储C ;
而加工物G 要引用C里的原料信息(g_name,num)其中g_name是外键(Y),加工物G需要存储的信息有name、guige、……,最主要的是加工物G 要让它保存多个信息,比如:
编号:001 名称:A板 规格……而 A板它包含着多个信息是仓储C 里的 原料信息 (如:A板包含,1块板、1包螺丝、2片铁片……这类原料信息)
我该如何建表,让他们的关系清晰

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
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!