协助选择
我有三个表:hosting_pack、hosting_attr 和hosting_attr_value。
一个hosting_category可以有多个hosting_packs和多个hosting_attributes。
要知道hosting_value,我们必须知道hosting_pack和hosting_attribute,因此hosting_pack包含包信息,hosting_attr包含属性,hosting_attr_value包含一个包中每个属性的值。
描述如下:
我想显示这样的表格:
hosting_attr, hosting_attr_value , for a given id_hosting_pack
注意:hosting_categ 和hosting_attr 之间的关系并不相同不存在,忽略它即可。
I have three tables: hosting_pack, hosting_attr and hosting_attr_value.
One hosting_category can have many hosting_packs and many hosting_attributes.
To know the hosting_value, we must know the hosting_pack and the hosting_attribute, so hosting_pack contains the pack information, hosting_attr contains the attributes, and hosting_attr_value contains the values of every attribute in one pack.
Described as follows :
I want to display a table like this:
hosting_attr, hosting_attr_value , for a given id_hosting_pack
Note: the relation between hosting_categ and hosting_attr doesn't exist, just ignore it.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
试试这个:
如果您不知道
id_hosting_pack
,您可以在线查找Try this:
If you do not know
id_hosting_pack
, you can look it up in-line尝试:
是这样吗?
并尝试学习一点 SQL。
Try:
Was that it?
And also try to study SQL a little bit.