在iOS 5中使用sqlite时,我面临一个问题。,我从两个表中获取记录:一个在食谱中,另一个在一个Menu.db中。NSString *query = [NSString stringWithFormat:@"select id from Recipes"];if(sqlite3_prepare_v2(database, [quer
NULLwhere
CONCAT('%',COALESCE('iOS-5',''),'%') or os is null)
这是我的查询,我想以这种方式过滤数据,如果我们在Os中传递null,那么它应该给出所有记录,如果我们传递iOS-5,那么它也应该给出包括null如果我们传递了iOS-5,那么它只给出了iOS-5<