Skip to content

Instantly share code, notes, and snippets.

@tzach
Created March 30, 2017 09:39
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 tzach/2449c298b1b0ab60b828ce9003ae854d to your computer and use it in GitHub Desktop.
Save tzach/2449c298b1b0ab60b828ce9003ae854d to your computer and use it in GitHub Desktop.
CREATE KEYSPACE mykeyspace WITH REPLICATION = { 'class' : 'SimpleStrategy', 'replication_factor' : 1 };
use mykeyspace;
CREATE TABLE counts (value counter, name varchar, PRIMARY KEY (name));
UPDATE mykeyspace.counts set value = value + 3 WHERE name = 'tzach';
select * from mykeyspace.counts;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment