I would like to make a research in a mysql database with several word machting word OR subword
for instance if I search for "ata" I want to obtain "data" and "database" if I search for "ata" and "get" I want to obtain "database is getting"
For the moment I use 2 times LIKE function:
SELECT col FROM mytable WHERE col LIKE "%ata%"
and then
SELECT col FROM mytable WHERE col LIKE "%get%"
if work but I think there is a more efficient way to that.
I tried:
SELECT col FROM mytable WHERE MATCH (col) AGAINST (concat('%','ata get','%') IN BOOLEAN MODE)
but it does not work.
If there a solution using MACH AGAINST?