Created
February 1, 2021 20:01
-
-
Save heartofrevel/1d7f48a241be4e66dbe3a92342daf4c9 to your computer and use it in GitHub Desktop.
ROW with INSERT
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:demo> TRUNCATE upsert_test ; | |
cqlsh:demo> SELECT * from upsert_test ; | |
name | title | |
------+------- | |
(0 rows) | |
cqlsh:demo> INSERT INTO upsert_test (name, title) VALUES ('Anshul', 'TL'); | |
cqlsh:demo> SELECT * FROM upsert_test ; | |
name | title | |
--------+------- | |
Anshul | TL | |
(1 rows) | |
cqlsh:demo> UPDATE upsert_test SET title = null WHERE name = 'Anshul'; | |
cqlsh:demo> SELECT * FROM upsert_test ; | |
name | title | |
--------+------- | |
Anshul | null | |
(1 rows) | |
cqlsh:demo> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment