如何更新卡桑德拉的元组?
Google 上没有关于如何更新元组的文献教程。 有人可以解释如何在 Cassandra 中更新元组吗?
There are literary no tutorials on how to update tuples on Google.
Can someone explain how tuples can be updated in Cassandra?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
CQL
元组
数据类型是隐式“冷冻”的,而无需CQL冷冻
关键字,因此您无法更新tuple
column> column -column> column -code> - 您需要更新整列。为了说明,这是我的示例CQL表:
以下是一个示例,我在其中插入一个带有其位置的传感器:
以下是一个示例,我更新传感器的位置:
有关详细信息,请参见 cql tuple type 。干杯!
The CQL
tuple
data type is implicitly "frozen" without needing the CQLfrozen
keyword so you can't update individual elements of atuple
column -- you need to update the whole column.To illustrate, here's my example CQL table:
Here's an example where I insert a sensor with its location:
Here's an example where I update the location of a sensor:
For details, see CQL tuple type. Cheers!