- Learning Apache Cassandra(Second Edition)
- Sandeep Yarabarla
- 50字
- 2021-07-03 00:19:31
Missing rows
What happens when we ask for a primary key that doesn't exist? Let's try it out:
SELECT * FROM "users"
WHERE "username" = 'bogus';
You'll see that Cassandra simply returns no results; it is not an error to try to retrieve a primary key that does not exist.