Using tuples in SQL “IN” clause
问题 I have a table containing the fields group_id and group_type and I want to query the table for all the records having any tuple ( group id , group type ) from a list of tuples. For example, I want to be able to do something like: SELECT * FROM mytable WHERE (group_id, group_type) IN (("1234-567", 2), ("4321-765", 3), ("1111-222", 5)) A very similar question is already asked at: using tuples in sql in clause , but the solution proposed there presumes the tuple list is to be fetched from