【发布时间】:2013-08-12 07:02:45
【问题描述】:
假设这张表:
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
【问题讨论】: