English 中文(简体)
选用CQL
原标题:Select First N from Cassandra Column using CQL

• 如何在Cassess获得一个特定浏览器的第一N栏?

cqlsh> select FIRST 5 from Daily_Domain_Stats where KEY =  20111110:1 ;
Bad Request: line 1:15 no viable alternative at input  from 
cqlsh> select  FIRST  5 from Daily_Domain_Stats where KEY =  20111110:1 ;
Bad Request: line 1:15 no viable alternative at input  5 
cqlsh> select  FIRST 5  from Daily_Domain_Stats where KEY =  20111110:1 ;
cqlsh> select FIRST  5  from Daily_Domain_Stats where KEY =  20111110:1 ;
Internal application error
cqlsh> select 5 from Daily_Domain_Stats where KEY =  20111110:1 ;
cqlsh> select [FIRST 5] from Daily_Domain_Stats where KEY =  20111110:1 ;
Bad Request: line 1:15 no viable alternative at character  ] 

我尝试了所有这些方式,但我没有给我带来适当的结果。 1.0.5 粉碎客户

Help Regards, Tamil

最佳回答

找到解决办法,

cqlsh> select first 5  0 .. 9  from Daily_Customer_Stats;

这一工作

参考

问题回答

暂无回答




相关问题
Building CQL in NDepend for verifying MVVM patterns

I wanted to verify few design patterns in C# code by static analysis. I want to verify these using NDepend. The application is built with MVVM design style, so typical design patterns that I would ...

CQL request composition

Is it possible to compose requests in CQL ? I would like to write something like: SELECT TYPES FROM ASSEMBLIES "myassemblie" WHERE IsUsing SELECT METHODS FROM ASSEMBLIES "myotherassemblie" WHERE ...

Ndepend CQL to query types out of assembly wildcard

In order to determine what low-level framework types a web application is directly using, one has to define each and every assembly involved. SELECT TYPES FROM ASSEMBLIES "Company.System.Framework", "...

How to restrict NDepend methods query on type attribute

I m trying to get NDepend to identify long methods using a modified version of the standard "Methods too big" query. I don t want to report long methods that the developers have little control over, ...

热门标签