I have a mysql table called main and I would like to select all the rows that contain a string in any field.
Not all the fields are varchar.
I do this for the field hardware, but I would like to be able to search in all the fields and if possible not to specify their names, because there are 12 fields now and they might grow in number.
SELECT * FROM main WHERE hardware LIKE "%string%"
EDIT :
I will do this in PHP and basicly I would like to do sometring like this
SELECT * FROM main WHERE at_least_one_field LIKE "%string%"