2017-06-14 45 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

通過使用上述查詢沒有返回任何行作爲結果可以有人告訴是什麼問題。 –