My question is this:
I have a Mysql table of 500 columns and I want to get all the records whose values are different from 100, and despise the columns with that value. For example:
Columna1 = 100, Columna2 = 60, Columna3 = 100, Columna4 = 35... Columna 500 = 56
I'm only interested in Columns 2, 4 and 500.
As in the beginning I do not know the value of the registers I can not put:
SELECT Columna2, Columna3, Columna500
and since the table is very large I can not put in the WHERE Columna2 <>100 AND Columna3 <>100 and Columna500 <>100
plus each row can be different.
Can you think of a solution?