I have table design like this:
id_a int(10) NO PRI
id_b int(10) NO PRI
For example: I want to delete data pair where one column contains ‘1’ and second contains ‘2’.
but there are two possibilities:
1) id_a = 1, id_b = 2
2) id_a = 2, id_b = 1
And I newer know if ‘1’ will be in column id_a or id_b.
What is the best way to handle deletes like this?.
Just look for both: