如何在 cassandra 中使用 timeuuid 名称

发布于 2024-08-26 07:17:43 字数 189 浏览 6 评论 0原文

我有一个问题,我想构建日志记录系统,该系统将使用 timeuuid 类型作为列名,以便我稍后可以询问。

由于对于按时间排序的范围查询,我需要使用 timeuuid 类型,我想问您如果 timeuuid 每次都是唯一的,并且我真的不知道列名称,那么我如何为 timeuuid 列名称指定范围查询,因为我只是知道它的存储时间吗?

请帮忙

I have a problem, I would like to build logging system which will be using timeuuid type as a column name which will allow me ask for it later.

Since for range queries order by time I need to use timeuuid type I would like to ask you how can I specify range queries for timeuuid column names if timeuuid is every time unique and I don't realy know the column name because of that I just know the time when it has been stored ?

please help

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

月寒剑心 2024-09-02 07:17:43

一切正常,事实证明列名不是必需的,但您不能使用 null,您需要使用空字符串

OK all works, it turned out that column names are not required but you can't use null you need to use empty string instead

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文