Is there a easy way to search on different fields for a entry of a text string.
So if i had one table product that had name, code, description and I had a search string 'something' would i have to do
select * from product where name = '%something%' OR code = '%something%' OR description = '%something%'
or is there a way of doing the seach on all the fields with out naming then so i could do a search on any table without knowing the names of the fields.
Thanks in advance.
So if i had one table product that had name, code, description and I had a search string 'something' would i have to do
select * from product where name = '%something%' OR code = '%something%' OR description = '%something%'
or is there a way of doing the seach on all the fields with out naming then so i could do a search on any table without knowing the names of the fields.
Thanks in advance.