cocos2dx 使用SQList3如何获取到数据库中的信息

char** table; // 查询结果
int r, c;     // 行数、列数
        
sql = "select * from sprite";
sqlite3_get_table(pdb, sql.c_str(), &table, &r, &c, nullptr);

CCLOG("Menber is %d , Attribute is %d", r, c);
        
        // 第0行(0 ~ c-1),为字段名
        // 第1行(c ~ 2*c-1),第一条记录
        // ......
        
for (int i = 0; i <= r; i++)
{
            for (int j = 0; j < c; j++)
            {
                CCLOG("%s", table*);
            }
            CCLOG("------------------------------");
}

        // 记得是否查询表
        sqlite3_free_table(table);




```

打印在控制台上的效果,如下:
Menber is 2 , Attribute is 6
ID
HP
Attack
Atks
Lv
Exp
------------------------------
0
100
40
10
1
0
------------------------------
1
100
40
10
1
0
------------------------------

而想要的效果是  
的,请问如何在游戏层中实现添加数据形成一个列表格式的效果?*

求助大神~~~~~~~~~~~~~~~~~~~~~