【发布时间】:2013-09-13 13:57:50
【问题描述】:
我对 Cassandra 很了解,尤其是 cqlsh 我可以得到一些列。我稍后会解释。这是我的桌子:
CREATE TABLE movies (
key text PRIMARY KEY,
boot text,
effect text,
foo text,
movie text,
starring text
);
还有一些内容:
key | boot | effect | foo | movie | starring
-----------+-----------------------+--------+------+---------------+----------
starwars | Revenge of the Nerds3 | null | bar | Star Wars | null
star trek | null | null | null | into darkness | null
现在,我明白我可以通过以下方式获得这些列的一部分:比如效果、foo 和电影:
select effect..movie from movies
我应该得到所有这些列。但是,这是我在运行查询时得到的:
Bad Request: line 1:7 no viable alternative at input 'effect'
这是我应该做的还是有其他程序或者我的想法/信息不正确?
我的部分假设是基于Are CQL2 column slices and CQL3 wheres on composite keys equivalent?中显示的内容
【问题讨论】: