iPhone and iPad : Doing a "select * from something" query in a SQLite database
- by Abramodj
Hi folks, i'm trying to use the SQLite data base in my iPad app, and here's my function to make a query:
- (void)executeQuery:(char*)query
{
NSString *file = [self getWritableDBPath];
NSFileManager *fileManager = [NSFileManager defaultManager];
BOOL success = [fileManager fileExistsAtPath:file];
// If its not a local copy set it to the…