2,209
社区成员
发帖
与我相关
我的任务
分享
if ( sqlite3_prepare(pSql, query, strlen(query), &statement, NULL ) == SQLITE_OK )
{
int ctotal = sqlite3_column_count(statement);
int res = 0;
while ( 1 )
{
res = sqlite3_step(statement);
if ( res == SQLITE_DONE )
break;
for ( int i = 0; i < ctotal; i++ )
{
str_msg += (char*)sqlite3_column_text(statement, i);
}
str_msg += "\n";
}
}
if(SQLITE_OK != sqlite3_finalize(statement))
MessageBox(_T("FinishError"));
statement = NULL;