FMDB更新一个条目的数据

NSString *sql = [NSString stringWithFormat:@"update t_student set address = '%@', contract_name = '%@', name = '%@', mobile = '%@', tel = '%@', customCode = '%@' where IDN='%@';",address,contract_name,name,mobile,tel,customCode,ID];
                    
                    if ([self.db executeUpdate:sql]) {
                        NSLog(@"添加数据成功!!!");
                    }else{
                        NSLog(@"添加数据失败!!!");
                    } 

你可能感兴趣的:(备忘)