1
4

1 回答 1

1

LENGTH returns the string length in bytes; your foreign language characters are probably 2 or 3 bytes UTF sequences. Try to replace LENGTH with CHAR_LENGHT, which returns the length of the string measured in characters, in the function definition.

SQLfiddle: http://sqlfiddle.com/#!2/1bb2d/1

于 2013-08-07T09:35:36.503 回答