I am trying to use FMDB to insert a few queries into the DB.
When I check the query for insert it is saying that it is inserting.
Later I can actually read the data from the Tables.
But what happens is that if I try to read the information from the DB, it comes back as null.
When I checked the DB in the Xcode Project, not seems to have updated.
It kind of confusing me. Any suggestion what the problem could be?
I am trying to use FMDB to insert a few queries into the DB.
Share
Your code is wrong. This is what I use to write:
And to read:
Also checkout where I located the db. I think doing your way will work on simulator but not on the device because of sandboxing and all.
Good luck!
EDIT:
Put this in your app delegate:
And run that method from
application:didFinishLaunchingWithOptionswith:Be sure that you put your database in your projecttree first.