简体   繁体   English

如何在关系中创建表

[英]how to create tables in relationships

数据库设计

Problem : In above UI pic for my application when i select build in Team the Category should show items related only to build , the same way when i select Acquire in Category only items related to acquire should show up in Sub - Category. 问题:在我的应用程序的上面的UI图片中,当我选择在Team中构建时,类别应显示仅与构建相关的项目,以同样的方式,当我选择在类别中进行获取时,仅与获取相关的项目应显示在子类别中。

I have to populate these UI elements from a SQL DB . 我必须从SQL DB填充这些UI元素。

I dont know how to relate this and create tables. 我不知道该如何关联并创建表。

I know bit of DB basic but design is new to me . 我知道一些DB基础知识,但是设计对我来说是新的。

Table Team, Field tName 表团队,字段tName

Table Category, Field tName, catName 表类别,字段tName,catName

Table Sub, Field catname, Subname 表子,字段猫名,子名

when you select team, set 'where' for Category and requery 选择团队时,将类别设置为“ where”并重新查询

when you select Category, set 'where' for Sub and requery. 当您选择类别时,为Sub设置“ where”并重新查询。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM