https://www.cnblogs.com/5211314jackrose/p/5815935.html
有返回值语句(
sqlReturnListList最后会出现乱码现象,单独压入时未乱码。
)
if (SQLITE_OK != access.sqlite3_prepare(m_db, sqlr, strlen(sqlr), &m_stmt, 0); ) vector <const char *> sqlReturnListList;//用于接收select的返回值 while( access.SqlNext()== SQLITE_ROW ) { int sqlReturnCount = access.getColumn_Count(); for(int i =0;i<sqlReturnCount;i++) { const char *name = access.getColumn_Text(i); sqlReturnListList.push_back(name); } } if(sqlReturnListList.size()>0) { if(sqlReturnListList.at(0) != NULL) { sqlUpdateInserte = true; } }