【发布时间】:2021-03-31 14:28:04
【问题描述】:
如果我有一个包含 2 列的帐户表,例如:
Account (id uuid, balance decimal)
如何在 Cassandra 中实现以下目标?
update Account(id, balance) SET balance = balance + 20.0 WHERE id = 80327e25-c32d-4b23-9499-f7bbae76e799 IF balance < 100.0;
我有一个场景,我想使用 Cassandra 跟踪跨越 3 个区域数据中心的集群中的余额,并能够使用 QUORUM 一致性更新余额字段。
【问题讨论】: