Hi All,
Just for the heck of it you might like to take a peek here. Pretty much Everything You Ever Wanted To Know About Dynamic SQL But Were (or weren't in this case!) Afraid To Ask...
http://www.sommarskog.se/dynamic_sql.html
Mike
Thx for the reply Jay! Your solution works great although in a moment of revelation I stumbled upon an alternative solution as well.
UPDATE MyTable
SET
Field1 = 'blah',
Field2 = 'blah'
WHERE LEFT(Zip,3) in ('852','853','854','855')
Is there any reason that one of these solutions might be more...
Hi All,
Trying to update certain fields where their zipcode falls within a comma delimited list containing the FIRST THREE characters of the zip. Ex. '852,853,854,855'
I'd assume it's something like this:
UPDATE MyTable
SET
Field1 = 'blah',
Field2 = 'blah'
WHERE Zip in ('852,853,854,855')
My...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.