Click here to view and discuss this page in DocCommentXchange. In the future, you will be sent there automatically.
删除字符串中的前导和尾随空白。
TRIM( string-expression )
string-expression 要剪裁的字符串。
SQL/2008 TRIM 函数是 SQL/2008 的一个核心功能。
SQL Anywhere 不支持附加参数 trim specification 和 trim character(SQL/2008 中定义了这些参数)。TRIM 的 SQL Anywhere 实现对应于 BOTH 的 TRIM 说明。
针对其它由 SQL/2008 标准定义的 TRIM 说明(LEADING 和 TRAILING),SQL Anywhere 分别提供了 LTRIM 和 RTRIM 函数。
以下语句返回没有前导和尾随空白的值 chocolate。
SELECT TRIM( ' chocolate ' );