I want to find/delete the contents of a field, Address6, if it contains (not necessarily exclusively) the contents of the City field. I can't figure out how to do this. I've tried things like:
select address6, city from table where city in(address6)
. . . but that only shows exact content matches
select address6, city from table where address = '%'city'%'
select address6, city from table where address = concat('%',city,'%')
. . . and variations on those. I'm trying to do it without using PHP, just MySQL. Is there a way to do this entirely within MySQL?
Thanks a lot,
Ali
select address6, city from table where city in(address6)
. . . but that only shows exact content matches
select address6, city from table where address = '%'city'%'
select address6, city from table where address = concat('%',city,'%')
. . . and variations on those. I'm trying to do it without using PHP, just MySQL. Is there a way to do this entirely within MySQL?
Thanks a lot,
Ali