I’m trying to get around pulling all the data from a table, and cycling through it with php. Here’s my current Query:
SELECT
*
FROM
ExampleTable
WHERE
StringContains LIKE "%lkjlkjsomeuser@example.comjkjhkjhkjhkjhk,mniu,mk,mkjh%"
ExampleTable.StringContains has values that look like ‘someuser@example.com’, ‘someuser2@example.com’, etc.
This doesn’t match because LIKE only finds sub strings of the column value, not the other way around. Any ideas on commands to find rows where the table value is a substring of the passed string?
Just make the
LIKEin the opposit order. Since you have to add those%you’ll have toconcatenatethe field first: