I'm looking for an easy way to find if two given numbers are in the same row, without using WHERE and OR in MySQL.
The table schema is like this
Field1 | Field2 | Field3 | Field4 | Field5 | Field6
0 0 3 0 0 4
1 5 0 0 0 0
0 0 2 0 6 0
For example, I would like to know if 3 and 6 are in the same row, and return TRUE or FALSE.
I am looking for something like this pesudo code: SELECT ID FROM Table WHERE :mynumber AND :myothernumber is :inthesamerow?
Thank you!