Created
April 15, 2018 17:28
-
-
Save lankydan/f9b3d3ef67240f189cb2a4c1b0f8d156 to your computer and use it in GitHub Desktop.
Datastax driver - create people_by_country table
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 TABLE IF NOT EXISTS people_by_country( | |
country TEXT, | |
first_name TEXT, | |
last_name TEXT, | |
id UUID, | |
age INT, | |
profession TEXT, | |
salary INT, | |
PRIMARY KEY((country), first_name, last_name, id) | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment