Skip to content

Instantly share code, notes, and snippets.

@lenards
Last active August 29, 2015 14:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lenards/0db9cc17c0294e2eec79 to your computer and use it in GitHub Desktop.
Save lenards/0db9cc17c0294e2eec79 to your computer and use it in GitHub Desktop.
cqlsh:musicdb> UPDATE user SET preferences = preferences + {'Rock', 'Classic'}
... WHERE id = 12345678-abcd-abcd-abcd-abcd12345678;
cqlsh:musicdb> SELECT * FROM user;
id | email | name | preferences
--------------------------------------+-------------------+------+---------------------
12345678-abcd-abcd-abcd-abcd12345678 | john@datastax.com | John | {'Classic', 'Rock'}
87654321-abcd-abcd-abcd-abcd87654321 | mary@datastax.com | Mary | null
(2 rows)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment