Using NSPredicate to match against a list of integers

I have a table with an integer field. I want to select all rows where that field contains any of a few different values.

I'm using this:

[NSPredicate predicateWithFormat:@"myIntValue IN {1,2,3,4}"]

but this only returns rows where myIntValue is 1.

What am I doing wrong?

5
задан teedyay 14 April 2011 в 11:18
поделиться