【发布时间】:2021-01-17 02:17:11
【问题描述】:
我有一个类别表:
Catid | Desciption
1 | Color
2 | Size
3 | Material
还有一个类别项目表
Catid | Name
1 | Red
1 | Blue
1 | Green
2 | Small
2 | Med
2 l Large
3 | Cotton
3 | Silk
我需要遍历所有项目并将它们显示在这样的标签中:
Red Small Cotton
Red Small Silk
Red Med Cotton
Red Med Silk
Red Large Cotton
Red Large Silk
Blue Small Cotton
Blue Small Silk
Blue Med Cotton
Blue Med Silk
Blue Large Cotton
Blue Large Silk
Green Small Cotton
Green Small Silk
Green Med Cotton
Green Med Silk
Green Large Cotton
Green Large Silk
请注意:类别可能更多或更少。它不是预先确定的。
有什么建议吗? 谢谢
【问题讨论】:
-
请注意:可能有更多或更少的类别。它不是预先确定的。