• 博客园logo
  • 会员
  • 众包
  • 新闻
  • 博问
  • 闪存
  • 赞助商
  • HarmonyOS
  • Chat2DB
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录

稻草人MNMN

  • 博客园
  • 联系
  • 订阅
  • 管理

公告

View Post

C++ Sqlite3的使用 不完整

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;
    }
}

  

posted on 2019-08-13 15:00  稻草人MNMN  阅读(320)  评论(0)    收藏  举报

刷新页面返回顶部
 
博客园  ©  2004-2025
浙公网安备 33010602011771号 浙ICP备2021040463号-3