【发布时间】:2015-04-07 22:40:33
【问题描述】:
执行 rc = sqlite3_open("test.db", &db); 时出现“无法打开数据库文件” ??
sqlite3 *db; // sqlite3 db struct
char *zErrMsg = 0;
int rc;
// Open the test.db file
rc = sqlite3_open("test.db", &db); // <-- creates DB if not found ??
if( rc ){
// failed
fprintf(stderr, "ERROR: Can't open database: %s\n", sqlite3_errmsg(db));
}
【问题讨论】:
标签: c cocoa-touch sqlite