SQLite数据库问题
VC用SQLite删除Publish表中所有内容,代码如下:
char *pErrMsg = NULL;const char *pzTail = NULL;sqlite3 *pSqlite3;sqlite3_stmt *Stmt;sqlite3_open16(theApp.m_DatabaseFilePath, &pSqlite3);int ret = sqlite3_exec(pSqlite3, "begin immediate", NULL, NULL, &pErrMsg);int ret1 = sqlite3_exec(pSqlite3, "delete from Publish", NULL, NULL, &pErrMsg);int ret2 = sqlite3_exec(pSqlite3, "commit", NULL, NULL, &pErrMsg);