@pratikshabhisikar i have to do like this in my code -(BOOL) insertData
{
[self createEditableCopyOfDatabaseIfNeeded];
//NSString *filePath = [self getWritableDBPath];
BOOL value = NO;
@try {
sqlite3 *database;
if (sqlite3_open([[self getWritableDBPath] UTF8String], &database) != SQLITE_OK)
{
sqlite3_close(database);
}
else {
NSString *nsQuery = [[NSString alloc] initWithFormat:@"INSERT INTO weather (ReportDate,conditionname,humidity,maxtemp,mintemp,wind) VALUES('%@','%@','%@','%@','%@','%@')" ,_forecastInfo.CurrentDateTime,currentcond.Condition,currentcond.Tempf,currentcond.Tempf,curre…