Created
August 16, 2019 11:21
-
-
Save alexott/a8e7d89318915caa3bc455d77a52ab32 to your computer and use it in GitHub Desktop.
example of counter deletion
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cqlsh:test> describe test.abc6 | |
CREATE TABLE test.abc6 ( | |
id int PRIMARY KEY, | |
c counter | |
); | |
cqlsh:test> select * from test.abc6; | |
id | c | |
----+---- | |
10 | 23 | |
1 | 10 | |
(2 rows) | |
cqlsh:test> delete c from test.abc6 where id = 1; | |
cqlsh:test> select * from test.abc6; | |
id | c | |
----+---- | |
10 | 23 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment