更新时间:2023-12-01 13:20:34
FMDB可以是一个如果你没有作为NSNumber传递对象,那就很挑剔。这是格式化查询的受支持且安全的方式。
FMDB can be a little finicky if you dont pass in the object as an NSNumber. This is the supported, and safe way of formatting queries.
[db executeUpdate:@"DELETE FROM theTable WHERE id = ?", [NSNumber numberWithInt:myObject.id]];