Suppose I have a database with:
John Smith - 103
Jane Doe - 287
Mike Smith - 371
And I have a string like:
"Let's see the value of John Smith in the database"
I need a way to check if this string has any of the names in it and get the value associated with the name.
How can I do this in sqlite?
This is not the same as the question linked, it's the inverse. I have the string and I am looking for a pattern that matches it.
If I did:
SELECT *
FROM TABLE
WHERE column LIKE '%string%'
I would get nothing.
It would be:
SELECT *
FROM TABLE
WHERE string LIKE '%column%'
But I don't think this can be done like this.