My current query (doesn\'t work)
SELECT url FROM table WHERE \'http://www.longurl.com/some/string\' like \'%\' . url . \'%\'
table
If what you need is getting all URLs containing longurl.com then try using:
longurl.com
SELECT url FROM table WHERE url like '%longurl.com%'
It should work.