亲爱的朋友们,
我们必须像这样(简化版本)某张表:
1 - 表属性: id PropName ParentId
1 Properties null
2 color 1
3 Length 1
4 width 1
5 Area 1
PARENTID是FK ID表属性
2 - TABL Properties_value:
{C}
ParentID为FK表属性的ItemID要标识是FK为了标识在TableItem
3 - TableItem: id ItemName ItemNo
1 Tv 100
我需要查询SQL,使高性能以下结果/格式
{体C3}
我试图透视法得到这个结果,但查询变得非常复杂,有性能问题Alot,我能做些什么来得到这样的结果,你的想法是什么呢?