小编Ada*_*arz的帖子

Cassandra - 无法删除行

我想从 Casandra 表中删除某一特定行,但我不能。我可以从表中删除除此之外的任何其他内容。我进行了以下删除查询,但没有任何反应:

cqlsh> delete from sales.tbl where orderid=999999 and orderdate='2019/01/01';
cqlsh>
cqlsh> select * from sales.tbl where orderid=999999 and orderdate='2019/01/01';

 orderid | orderdate  | country | itemtype | orderpriority | region        | saleschannel | shipdate   | totalcost | totalprofit | totalrevenue | unitcost | unitprice | unitssold
---------+------------+---------+----------+---------------+---------------+--------------+------------+-----------+-------------+--------------+----------+-----------+-----------
  999999 | 2019/01/01 |  Canada |    Stuff |             N | North America |      Offline | 2019/01/02 |       100 |           0 |          100 |        0 |         1 |         1

(1 rows)
cqlsh> …
Run Code Online (Sandbox Code Playgroud)

linux cassandra scylla

2
推荐指数
1
解决办法
642
查看次数

标签 统计

cassandra ×1

linux ×1

scylla ×1