如何查询(CQL)具有一对多PK列关系的Cassandra复合PK表?

时间:2017-05-25 22:51:49

标签: cassandra cql composite-primary-key

我有一张卡桑德拉表:

PropertiesOfThing
------------------
thingID text
propertyName text,
propertyValue,
primary key (thingID, propertyName)

记录可以是:

thingID propertyName propertyValue
1       x            v1x
1       y            v1y
2       y            v2y

如何在例如x中找到没有特定propertyName的thingID?什么是正确的CQL?

0 个答案:

没有答案