FMDB更新一个条目的数据

来源:互联网 发布:玲珑密保网络错误 编辑:程序博客网 时间:2024/06/08 06:54
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(@"添加数据失败!!!");                    } 
原创粉丝点击