MSCEWI2003
Collation not supported in trim functions, add original collation to function result to preserve it.
Severity
Description
Code Example
Input Code:
CREATE TABLE collateTable (
col1 VARCHAR(50) CHARACTER SET LATIN NOT CASESPECIFIC
);
SELECT
TRIM(BOTH '0' FROM col1),
TRIM(LEADING ' ' FROM col1),
TRIM(TRAILING '0' FROM col1),
LTRIM(col1, '0'),
RTRIM(col1)
FROM collateTable;Output Code:
Recommendations
Last updated
