Last active
November 2, 2016 08:44
-
-
Save nirmaayan/cbc5b01a15726ec959673fe030d4f3e7 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 test WITH REPLICATION = { 'class' : 'SimpleStrategy', 'replication_factor' : 3}; | |
DESCRIBE test; | |
CREATE TABLE test.users (user_name varchar PRIMARY KEY, birth_year bigint); | |
DESCRIBE test.users; | |
INSERT INTO test.users (user_name, birth_year) values ('tzach', 1970); | |
INSERT INTO test.users (user_name, birth_year) values ('nadav', 1972); | |
INSERT INTO test.users (user_name, birth_year) values ('shlomi', 1974); | |
INSERT INTO test.users (user_name, birth_year) values ('nir', 1980); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment