mysql trim函数:
TRIM([{BOTH | LEADING | TRAILING} [remstr] FROM] str) , TRIM(remstr FROM] str)
Returns the string str with all remstr prefixes and/or suffixes removed. If none of the specifiers BOTH, LEADING, or TRAILING is given, BOTH is assumed. If remstr is optional and not specified, spaces are removed.
例子,trim函数去除空格。