I’m using mysql. I need to select rows from table (with fields id,field1,field2,field3) where (field1,field2,field3) in set of vectors (v11,v21,v31),(v12,v22,v32),...,(v1N,v2N,v3N). Is it possible to do it with one query? If yes, what fields do I need to index to speed up the query? And is this query faster/slower then N serial simple select queries?
Thank you in advance!
You can do a multi-column
INcomparison like so:And it’s essentially saying:
Where