Created
March 30, 2017 09:39
-
-
Save tzach/2449c298b1b0ab60b828ce9003ae854d to your computer and use it in GitHub Desktop.
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
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