I have this mysql query:
SELECT * FROM `mytable` WHERE (condition 1) OR (condition 2) OR (condition3)
Can I make this query show the rows from condition 1, followed by the ones from condition2 and finally condition 3?
I did this by using UNION and it worked, but it’s slower (tested the query on my mysql) – actually it’s faster than the “OR” query if there are no duplicates but way slower if there are.
Ty!
Not sure if this would work for you: