mysql> SELECT '[ mobile ]',CONCAT('[',TRIM(' mobile '),']'); +----------------+--------------------------------------+ | [ mobile ] | CONCAT('[',TRIM(' mobile '),']') | +----------------+--------------------------------------+ | [ mobile ] | [mobile] | +----------------+--------------------------------------+ 1 row in set (0.07 sec)由执行结果可知,函数执行之后字符串“mobile”两边的空格被删除,结果为“mobile”。
本文链接:http://task.lmcjl.com/news/5758.html