【问题标题】:How to get result for one millisecond differences in cqlsh如何在cqlsh中获得一毫秒差异的结果
【发布时间】:2015-11-19 00:56:58
【问题描述】:

例如 cqlsh 查询:

 select * from table where eventtime >= '2015-06-02 06:30:00+0530' and eventtime <= '2015-06-02 09:30:00+0530';

输出是 4 行。 但万一改变了

 eventtime >'2015-06-02 06:30:00+0530' and eventtime <= '2015-06-02 09:30:00+0530';

也得到相同的结果(4 行)。 但我需要 3 行。其中 eventtime 类型为“时间戳”

【问题讨论】:

    标签: cassandra cql


    【解决方案1】:

    timestamp内部存储有毫秒精度,默认不显示。查看更多信息herehere

    【讨论】:

      猜你喜欢
      • 2019-10-16
      • 1970-01-01
      • 2021-04-08
      • 1970-01-01
      • 2014-08-27
      • 2022-08-14
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多