When I try SQLite on iOS, INSERT and UPDATE does not work

前端 未结 1 1202
北恋
北恋 2020-12-22 07:19

I createed a table in user.db, this file is in my xcode project folder.

create table user (uid INTEGER PRIMARY KEY ASC AUTOINCREMENT, username,          


        
相关标签:
1条回答
  • 2020-12-22 07:53

    You can't update databases stored in the app resources. Try copying the database to your app's Document or Library folder and then updating the database there.

    0 讨论(0)
提交回复
热议问题