mdzp.net
当前位置:首页 >> ios怎么将nsDAtA存入sqlitE >>

ios怎么将nsDAtA存入sqlitE

写NSString *coords = [[[NSString alloc] initWithFormat:@"%f,%f\n",longitude,latitude] autorelease];NSData *csvData = [coords dataUsingEncoding:NSUTF8StringEncoding];NSArray *UsrDocPath = NSSearchPathForDirectoriesInDomains(NSDo...

不建议把文件存在SQLITE里面。DB文件变大,效率下降非常明显的。建议按规则存放文件夹里面。DB里面记录相应的路径。

const char * sequel = "select image from test_table where name=?";sqlite3_stmt * getimg;if (sqlite3_prepare_v2(database, sequel, -1, &getimg, NULL) == SQLITE_OK){ char *name = "test"; sqlite3_bind_text(update, 1, name, -1, NULL...

网站首页 | 网站地图
All rights reserved Powered by www.mdzp.net
copyright ©right 2010-2021。
内容来自网络,如有侵犯请联系客服。zhit325@qq.com