I have a database with four columns corresponding to the geographical coordinates x,y for the start and end position. The columns are:
You can concatenate the four values into a string and check them like that:
SELECT * FROM my_table WHERE CONCAT_WS(',', x0, y0, x1, y1) IN ('4,3,5,6', ..., '9,3,2,1');