iphonesqlitefmdb

FMDatabase: perform the operation: Insert, Update, Select, Delete


I am developing iPhone application using SQLite. I decided to use fmdb. Using fmdb, how do I perform the following operation:-Insert, Update, Select, Delete?

As I can't develop application using FMDatabase. I downloaded FMDatabase files which contain following files namely =>

  1. FMDatabase.h
  2. FMDatabase.m
  3. FMResultSet.h
  4. FMResultSet.m
  5. FMDatabaseAdditions.h
  6. FMDatabaseAdditions.m
  7. fmdb.m

But the file fmdb.m also contains the main function. So it is conflicting with my applications MAIN function.


Solution

  • fmdb.m is a file that contains FMDB sample code. You should not include this file in your Xcode project. But you should review it to see how to work with FMDB. It contains a lot of well-commented examples.