本文介绍了如何设计表格的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有如下表格

t_company有companyid,companyname;

t_department有departmentid,departmentname,companyid;

t_goodstype有goodstypeid, goodstypename,departmentid;

t_goods有货物,商品名称,goodstypeid;



在我的项目中,很多时候我想看货物和一个公司有一个好的。

表格设计得好。

或者应该像tableid一样添加一行到表t_goodstype和t_goods;

I have tables like below
t_company has companyid, companyname;
t_department has departmentid, departmentname, companyid;
t_goodstype has goodstypeid, goodstypename, departmentid;
t_goods has goodsid, goodsname, goodstypeid;

In my project, in many times I would like to see goods and goodstype a company has.
Is the table up good designed.
Or should add a row like companyid to table t_goodstype and t_goods;

推荐答案


这篇关于如何设计表格的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-14 15:41