0

在向 Riak TS 查询时,我的电子邮件包含 @ 符号,因此它会出现一些问题,例如

SQL Lexer error <<"Unexpected token '@'.">>

那么我们如何解决这个问题。

4

2 回答 2

0

特别是@Saranjith

查询现在如下所示

select start,end,steps from steps_record where start >= 1472495400000 and start <= 1490121000000  and userName = '<<"apolloprod120@gmail.com">>';

无论如何,谢谢@Saranjith,在我解决了这个问题之后,我以 2-3 种方式尝试了你给定的语法。

于 2017-06-14T08:05:51.473 回答
0

使用下面的查询。

SELECT SUM(steps),
       registrationDate
FROM steps
WHERE
  START >= 1482085800000
  AND
  START <= 1489775400000
  AND userName = <<"hussain.shahzad250@gmail.com">>;
于 2017-06-14T04:28:34.187 回答