I want to search all fields from tables tblproduct in MySQL database a given string, possibly using syntax as:
SELECT * FROM tblproduct WHERE * LIKE '%textbox%'
Is it possible to do something like this?
I want to search all fields from tables tblproduct in MySQL database a given string, possibly using syntax as:
SELECT * FROM tblproduct WHERE * LIKE '%textbox%'
Is it possible to do something like this?
Try this..
concate fields to search whole table
Select * from tblproduct where Concat(field1, '', field2, '', fieldn) like "%textbox%"
or
Using MATCH and AGAINST in mysql
SELECT * FROM tblproduct WHERE MATCH (field1, field2, field3) AGAINST ('textbox')