In your LOCATE statement, you are searching for an empty string ''
instead of a space ' '
Add a space character.
What you are doing will fetch the string from its second character to the first occurrence of a space character. Is this really what you want to do? What if the the first or second character are space characters?
Pekka
2010-08-05 14:58:34