SQLlite3 Update statment has no effect

后端 未结 3 1182
Happy的楠姐
Happy的楠姐 2021-01-28 23:05

I\'m no SQL expert, but have a bug in an iPhone app where and UPDATE statement has no effect on the db. I have been using the SQLlite manger plugin for FireFox to try dbug by re

3条回答
  •  旧巷少年郎
    2021-01-28 23:30

    If your query is correct then You need to make sure about 2 things.

    1. Have you written finalize_statement like this ?

      sqlite3_finalize(selectStatement);
      

    2.If you are testing in simulator. Are you sure you are checking database update in following path ?

    /user/Libary/Application Support/iPhone Simulator/Your_Version_Number/Applications/YOUR_APPLICATION_GUID/Documents
    

    Hope this help.

提交回复
热议问题