Click to See Complete Forum and Search --> : MySQL Query to go through entries in a field and remove whitespace


Gazthrak
06-11-2009, 04:05 PM
I am working on an import from an old system into a new one and unfortunately, I have to remove spaces in product codes because the new system freaks out when it is read a product code with a space in it. I know how to get preceding and trailing whitespace but not whitespace in the middle. Can anyone help?

Thank you.

dingbat
06-11-2009, 05:17 PM
Use the REPLACE function.