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
If one of Name or Nickname has to be found within the text use
Name
Nickname
SELECT * FROM names WHERE instr("who is Rohit", Name) > 0 OR instr("who is Rohit", Nickname) > 0
No index can be used for that, so it might take long for large tables.