Rom*_*use 4 sqlite iphone objective-c fmdb ios
我试图向我的 SQLite 数据库(使用 fmdb)添加 10k 行,但写入在 1000 行处停止。我没有任何错误或警告。我的代码:
NSString *queryString = [NSString stringWithFormat:@"insert into histories (storyid, text, date, storyurl) values (%li, ?, ?, ?)",history.storyIndex];
if ([self.db open]) {
if([self.db executeUpdate:queryString, history.storyText, history.storyDate, history.storyUrl]) {
NSLog(@"history added");
}
}
Run Code Online (Sandbox Code Playgroud)
有什么建议么?
| 归档时间: |
|
| 查看次数: |
3008 次 |
| 最近记录: |