MIDRANGE dot COM Mailing List Archive



Home » MIDRANGE-L » October 2012

Re: SQL Update Multiple Fields from Different File



fixed

Michael,

If strmstpfd has these values

ststr stm#d stm#e
1 a b
2 c
3 d

SELECT * FROM michael/strmstpfd WHERE stm#d <> ' ' and stm#e <> ' '
would only return
ststr stm#d stm#e
1 a b

So if you had 1,2,3 in strmstp it would try to update 2 & 3 with null
values. Normally fixed by some usage of EXISTS to therefore only update 1
and ignore 2 & 3.



Rob Berendt





Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2014 by MIDRANGE dot COM and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available here. If you have questions about this, please contact