+ (void)insertWithSetKeyName:(NSString *)keyName Value:(NSString *)value;
{
[self open];
NSString * sql = [NSString stringWithFormat:@"insert or ignore into PTBBSet values (‘%@‘, ‘%@‘)", keyName, value];
sqlite3_exec(dbPoint, sql.UTF8String, NULL, NULL, NULL);
}
Ios 数据库主键重复,依然可以插入
原文:http://www.cnblogs.com/gaojingxuan/p/4834950.html