Skip to content

Instantly share code, notes, and snippets.

@lankydan
Created April 15, 2018 17:28
Show Gist options
  • Save lankydan/f9b3d3ef67240f189cb2a4c1b0f8d156 to your computer and use it in GitHub Desktop.
Save lankydan/f9b3d3ef67240f189cb2a4c1b0f8d156 to your computer and use it in GitHub Desktop.
Datastax driver - create people_by_country table
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