I need to run an update that changes only a few letters/numbers in the middle of a field without changing the rest of the field.
For example, I need to have the query locate all instances of "Blue" in the field Color, then look at the size field and look for the string ".1M". This could be in the middle of a statement like "Height = .1M, width = 3M". I then need it to change only the .1M to .125M. How do I get it to change only this substring, and not the surrounding string?
I am starting with a query like this to locate the records, I need to know how to write the Set section:
[tt]
UPDATE products
SET Size = ???.125M???
WHERE Color = 'Blue' AND Size LIKE '*.1M*';
[/tt]
Thanks,
Cheryl dc Kern
For example, I need to have the query locate all instances of "Blue" in the field Color, then look at the size field and look for the string ".1M". This could be in the middle of a statement like "Height = .1M, width = 3M". I then need it to change only the .1M to .125M. How do I get it to change only this substring, and not the surrounding string?
I am starting with a query like this to locate the records, I need to know how to write the Set section:
[tt]
UPDATE products
SET Size = ???.125M???
WHERE Color = 'Blue' AND Size LIKE '*.1M*';
[/tt]
Thanks,
Cheryl dc Kern