dodgem
September 23rd, 2007, 05:27 AM
I'm trying to perform a function in mysql which would look something like this if the actual fields were displayed:
blah blah where ',4,6,7,12,' like '%7%' and blah blah
the problem i have is that both ',4,6,7,12,' and '7' are in tables, so what i actually have is:
blah blah where Contract.SiteList like %Site.SiteID% and blah blah
Obviously that doesn't work, but hopefully it demonstrates what i'm trying to achieve! Any ideas on how i can solve this? There could well be mysql functions i don't know of that will help...
Thanks :)
blah blah where ',4,6,7,12,' like '%7%' and blah blah
the problem i have is that both ',4,6,7,12,' and '7' are in tables, so what i actually have is:
blah blah where Contract.SiteList like %Site.SiteID% and blah blah
Obviously that doesn't work, but hopefully it demonstrates what i'm trying to achieve! Any ideas on how i can solve this? There could well be mysql functions i don't know of that will help...
Thanks :)