if ([db open]) { ...
发布于 2022-03-03 11:40:48
if ([db open]) {
NSString *insertSql= [NSString stringWithFormat: @"(1) '%@' ('%@', '%@', '%@') VALUES ('%@', '%@', '%@')", TABLENAME, NAME, AGE, @"小明", @"13"]
BOOL res = [(2):insertSql]
if (!res) {
NSLog(@"error")
} else {
NSLog(@"success ")
}
[db close]
}
阅读上面程序,在(1)(2)中应分别插入下列哪一项可以完成插入数组操作()
NSString *insertSql= [NSString stringWithFormat: @"(1) '%@' ('%@', '%@', '%@') VALUES ('%@', '%@', '%@')", TABLENAME, NAME, AGE, @"小明", @"13"]
BOOL res = [(2):insertSql]
if (!res) {
NSLog(@"error")
} else {
NSLog(@"success ")
}
[db close]
}
阅读上面程序,在(1)(2)中应分别插入下列哪一项可以完成插入数组操作()
登录后免费查看答案
关注者
0
被浏览
13