Created
January 22, 2020 12:05
-
-
Save tzach/b7f1b12d660bf517ddce95445f306590 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'} AND durable_writes = true; | |
USE mykeyspace; | |
CREATE TABLE tbl ( | |
k int, | |
v int, | |
x int, | |
PRIMARY KEY (k,v) | |
); | |
INSERT INTO tbl (k,v,x) VALUES (1,2,0); | |
INSERT INTO tbl (k,v,x) VALUES (1,2,3) IF NOT EXISTS; | |
INSERT INTO tbl (k,v,x) VALUES (1,3,3) IF NOT EXISTS; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment