Last active
August 29, 2015 14:06
-
-
Save lenards/0db9cc17c0294e2eec79 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
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