Can you please tell me how to create SQLite DB in iPhone and to perform CRUD operations from objective c program to databases. How to do it programmatically??
I know to create DB and table through command line, but how to do it programmatically??
Help me..
Thank you.
Add the libsqlite3.dyllib library to your project. Right-click on the Frameworks group, select Add->Existing Frameworks… and scroll down to select and add libsqlite3.dyllib.
#import in your source file.
Open or create a database file with the path in an NSString
fileusing this code:Execute commands in an NSString
aQuerywith this code:Close the database connection with sqlite3_close (database);
For more info on the C interface, see http://www.sqlite.org/cintro.html.