English 中文(简体)
FMDB query is not taking any effect on the DB
原标题:
  • 时间:2010-10-18 21:39:53
  •  标签:
  • ios4
  • fmdb

I am using FMDB in my app to do some updates in my DB. Problem is when I update my table with executeUpdate function, it update my table BUT if I copy the same .sqlite file from project to at another place in my drive and try to query using terminal, it shows that database is not updated, why it is so?

问题回答

Well, you program will never change the database you copied into your xcode-project. When you compile your program the sqlite database is copied into your app binary. If you would like to examine your resulting database you have to reveal your binary used by the iPhone Simulator.





相关问题
deleting row in SQLite 3

In UITableView, I want to delete a row and remove that row on database, but my query of sqlite don t works. - (void)tableView:(UITableView *)tableView commitEditingStyle:(UITableViewCellEditingStyle)...

FMDB query is not taking any effect on the DB

I am using FMDB in my app to do some updates in my DB. Problem is when I update my table with executeUpdate function, it update my table BUT if I copy the same .sqlite file from project to at another ...

FMDB open database

I m trying to open a database that I have in my project inside Resources. The problem is that it seems that its impossible to find the database file! I tried with the complete path, and it works, but ...

FMDB SQLite question: row count of a query?

does anyone know how to return the count of a query when using FMDB? If I executeQuery @"select count(*) from sometable were..." I get an empty FMResultSet back. How can I get the row count of the ...

Writing to sqlite db using fmdb?

Ok so I understand that fmdb is totally outdated, and core data is where it s at, but for now, I just need to tweak an app I m working on that uses fmdb to read from a sqlite db in the resources ...

How do I import a class into an iPhone project?

I m sure this is very easy but I m trying to get the fmdb sqlite wrapper to work in an iPhone project. I ve grabbed the files via SVN, and there are h and m files inside an src folder. I d ...

热门标签