Passing an array to sqlite WHERE IN clause via FMDB?
问题 Is it possible to pass an array to a SELECT … WHERE … IN statement via FMDB? I tried to implode the array like this: NSArray *mergeIds; // An array with NSNumber Objects NSString *mergeIdString = [mergeIds componentsJoinedByString:@","]; NSString *query = @"SELECT * FROM items WHERE last_merge_id IN (?)"; FMResultSet *result = [database executeQuery:query, mergeIdString]; This only works if there is exactly 1 object in the array, which leads me to believe that FMDB adds quotes around the