0
I am trying to create a table in Cassandra.
CREATE TABLE users (
user_name varchar PRIMARY KEY,
password varchar,
gender varchar,
session_token varchar,
state varchar,
birth_year bigint
);
現在,如果我要查詢的表的用戶名和密碼選擇查詢在我的session_token = 1000001卡桑德拉表 - 與where子句
Select user_name,password from users where session_token = 1000001;
Will this query work or do I have to create an index on session_token first and then do select query?
是session_token是唯一的? –
不是唯一的。它不是唯一的 – v83rahul
是可能的,對於單個session_token有多個用戶名? –