我有这个架构:
Regles -Pertinent-> Rubrique
Cri -Pertinent->Rubrique
首先,
以下命令:
SELECT in('Pertinent').@class FROM Rubrique WHERE @rid = '#33:1'
返回:
["Cri","Cri","Cri","Regle","Regle","Regle","Regle","Regle","Regle","Regle","Regle","Regle","Regle","Regle"]
我想用这样的东西选择一个特定的顶点:
SELECT * FROM Rubrique WHERE @rid = '#33:1'
然后选择所有连接的'Cri',所以我尝试了这个但似乎不起作用:
SELECT expand(in('Pertinent')) FROM Rubrique WHERE @rid = '#33:1' AND in('Pertinent').@class = "Cri"
你有什么想法吗?
答案 0 :(得分:1)
您可以尝试使用
SELECT expand(in('Pertinent')) FROM Rubrique WHERE @rid = '#33:1' AND in('Pertinent').@class in "Cri"
修改强>
您可以尝试使用
SELECT expand(in('Pertinent')[@class = "Cri"]) FROM Rubrique WHERE @rid = '#33:1'
希望它有所帮助。