I want to find all the row in a table who have a specific column data contained in a given string.
Let's say i have a table of name.
+----------+------------------+
| id | name |
+----------+------------------+
| 1 | John Do |
+----------+------------------+
| 2 | Douglas Rutledge |
+----------+------------------+
| 3 | Herman Kelly |
+----------+------------------+
For the given string : "I was in a party with Douglas Rutledge" I wanna get the result :
+----------+------------------+
| id | name |
+----------+------------------+
| 2 | Douglas Rutledge |
+----------+------------------+
Or for the string : "I just met John Do and Herman Kelly" I wanna get the result :
+----------+------------------+
| id | name |
+----------+------------------+
| 1 | John Do |
+----------+------------------+
| 3 | Herman Kelly |
+----------+------------------+
I imagine a query who could look like : SELECT * FROM my_table WHERE my_table.name IS CONTAINED IN "my_string"