Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/cassandra/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Nosql 卡桑德拉:进行范围查询_Nosql_Cassandra_Command Line Interface_Thrift_Cql - Fatal编程技术网

Nosql 卡桑德拉:进行范围查询

Nosql 卡桑德拉:进行范围查询,nosql,cassandra,command-line-interface,thrift,cql,Nosql,Cassandra,Command Line Interface,Thrift,Cql,我知道您可以对列名进行范围查询。 示例:获取名称在100-200之间的所有列 虽然我已经找到了许多关于如何以这种方式创建列族的示例,但还没有找到在CLI或CQL中进行此类查询的示例 我正在寻找这样的东西:GET journals['bob'],其中列名称介于100和200之间 CLI或CQL中是否存在这样的语句? 还是我必须节俭?在查询中: select 100..200 from journals where name = 'bob'; 请注意,此语法在CQL 3.0中正在更改为: sele

我知道您可以对列名进行范围查询。 示例:获取名称在100-200之间的所有列

虽然我已经找到了许多关于如何以这种方式创建列族的示例,但还没有找到在CLI或CQL中进行此类查询的示例

我正在寻找这样的东西:
GET journals['bob'],其中列名称介于100和200之间

CLI或CQL中是否存在这样的语句? 还是我必须节俭?

在查询中:

select 100..200 from journals where name = 'bob';
请注意,此语法在CQL 3.0中正在更改为:

select value from journals where name = 'bob' and column > 100 and column < 200;
从名称为'bob'且列数>100且列数<200的日记账中选择值;