iOS - using sqlite database update data not working
问题 I would like to update some data in Xcode sqlite db. The db is successfully connected, but seems like there's something wrong in the sql statement, it keeps returning "Failed to add contact", thanks for helping. - (void) saveData:(id)sender { NSLog(@"The code runs through here!"); sqlite3_stmt *statement; NSString *documents = [self applicationDocumentsDirectory]; NSString *dbPath = [documents stringByAppendingPathComponent:@"monitorDB.sqlite"]; const char *dbpath = [dbPath