I\'m having trouble finding a better way to search MySQL for a pair of values in a table. I have the value pairs in an array, and would like to duplicate the IN() function, but
Great answers from @Quassnoi and @KM !!!
Also, you can get pairs duplicates and select them for post-processing:
SELECT * FROM `foo` WHERE (`id_obj` , `Foo_obj`) IN ( SELECT `id_obj` , `Foo_obj` FROM `foo` GROUP BY `id_obj` , `Foo_obj` HAVING count(*) > 1 )