I use sqlite data base to store values in offline mode.In these values it contains strings with double quotation marks.(eg: hai "Man")
NSString* insertSQL = [NSString stringWithFormat: @"UPDATE tablename SET SummaryDescription="%@" WHERE SummaryDate1="%@" AND ClientId="%@"",SummaryDescription,[_dic objectForKey:@"SummaryDate1"],[[NSUserDefaults standardUserDefaults]objectForKey:@"ClientID"]];
[db updateTable:insertSQL];
In SummaryDescription contains value hai "Man".But I cannot able to store this data into database.
If we remove this double quotation marks we can store this data.Is there is any other way to store these types of double quotation marks string.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…