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(@"添加数据失败!!!");
}
FMDB更新一个条目的数据
最新推荐文章于 2020-10-31 01:04:16 发布