A bit of a bad name maybe, but I'm trying to explain what I mean.
I am using SQL like this to create a list
SELECT id
FROM parcel
WHERE id IN (113715, 113824, 113855, 113954, 114010, 114116, 114272, 114329)
where IDis the column in the package table that is quarantined to be unique, very simple.
But some tables use many columns to be unique.
SELECT id1, id2
FROM trip
WHERE id1, id2 IN ((113715, 113824), (113855, 113954), (114010, 114116),(114272, 114329))
Last SQL obviously does not work.
I want to select the rows where
id1 = 113715 and id2=113824 or
id1 = 113855 and id2=113954 or
id1 = 114010 and id2=114116 or
id1 = 114272 and id2=114329
In fact, the generated SQL can contain 500-1000 identifiers.
Which SQL should I use?
EDIT
This is generated SQL. The identifier comes from another database on another server, so JOIN, for example, is not possible.