看下面的代码部分。我在这里SELECT
整张桌子。然后我想解析每一行并按列名接收表格内容。是否可以SQLite
按名称访问行中的列?谢谢
if(sqlite3_prepare_v2(db, buffer, strlen(buffer), &stmt, 0) == SQLITE_OK)
{
int cols = sqlite3_column_count(stmt);
int result = 0;
while(true)
{
result = sqlite3_step(stmt);
if(result == SQLITE_ROW)
{
// want to get result by column name xxx['columnName'];