如果有任何更正,请检查查询是否对我不起作用。这对我有用。
const char *TimedEventQuery=[ @"update table1 set EndTime = ?, Duration = ?, where EndTime is null and eventType = 2 or 3" UTF8String];
答案 0 :(得分:1)
几个问题:
const char *TimedEventQuery= "update table1 set EndTime = ?, Duration = ? where EndTime is null and (eventType = 2 or eventType = 3)";