假设这张表:
create table s4 (a timeuuid primary key, b timeuuid, stuff text);
create index s4_index1 on s4 (b);
这有效:
select * from s4 where b = 259300f1-01bb-11e3-89a8-896ab45a266f;
但这失败了。为什么?我该如何解决它?
update s4 set stuff='f' where b=259300f1-01bb-11e3-89a8-896ab45a266f;
error->> Bad Request: Non PRIMARY KEY b found in where clause