I have a table with java package names:
|id|pkg|
|1 |some.long.package.path|
|2 |com.admob.bla|
and a table that contains partial packages names form known advertisement frameworks.
|id|path_fragment|
|1 |.admob |
How can I retrieve packages whose value for pkg contains any of the ad_frameworks.path_fragment?
I just can’t find the substring check. All I find is people using like to compare to some string literal but never for comparing columns.
NOTE: I am using MySQL.
think you could do an inner join with a like
or as you pointed
or
or
or
Well, you’ve got few choices 😉
SqlFiddle