2017-06-14 46 views
0

同时使查询了Riak TS,我的电子邮件contaning @符号。@不配套到了Riak TS

+0

第一显示您的代码 – Saranjith

+0

而来自了Riak - 壳查询只是其返回此错误,我的查询是SELECT SUM(步骤),从registrationDate步骤,其中开始> = 1482085800000,并开始<= 1489775400000和用户名=“hussain.shahzad250 @ gmail.com“; –

回答

0

使用以下查询。

SELECT SUM(steps), 
     registrationDate 
FROM steps 
WHERE 
    START >= 1482085800000 
    AND 
    START <= 1489775400000 
    AND userName = <<"[email protected]">>; 
+0

@Shahzad如果你的问题解决了,请接受答案 – Saranjith

+0

对不起,它仍然有问题,因为SQL解析器错误{<<"<">>,riak_ql_parser, [“之前的语法错误:”,“less_than_operator”]} –

+0

是的,我得到了回应,但现在查询将会像select select start,end,steps_record中的步骤那样start> = 1472495400000并且start <= 1490121000000和userName ='<<“[email protected]”>>'; –

0

专门@Saranjith

查询将现在如下

select start,end,steps from steps_record where start >= 1472495400000 and start <= 1490121000000 and userName = '<<"[email protected]">>'; 

反正感谢@Saranjith给,我想与你给出的语法在2-3的方式之后,我得到这个解决。

+0

通过使用上述查询没有返回任何行作为结果可以有人告诉是什么问题。 –