My current query (doesn\'t work)
SELECT url FROM table WHERE \'http://www.longurl.com/some/string\' like \'%\' . url . \'%\'
table
The concatenation operator . does not exist in MySQL, you have to use the CONCAT() function instead:
.
SELECT url FROM table WHERE 'http://www.longurl.com/some/string' LIKE CONCAT('%', url, '%');