Skip to content

Instantly share code, notes, and snippets.

@alexott
Created August 16, 2019 11:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save alexott/a8e7d89318915caa3bc455d77a52ab32 to your computer and use it in GitHub Desktop.
Save alexott/a8e7d89318915caa3bc455d77a52ab32 to your computer and use it in GitHub Desktop.
example of counter deletion
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