is there a way to write an sql query that finds all rows where the field value is a substring of a given string.
Example:
table names Name | N
You can also reverse the LIKE condition.
select * from names where "who is rohit" LIKE CONCAT('%', Name, '%');
Note, this probably isn't any faster than instr("who is Rohit", Name) but it may be.