To suppress trailing pad characters from the character count for a data value, use the TRIM function on the argument to CHARACTER_LENGTH. For example:
SELECT CHARACTER_LENGTH( TRIM( TRAILING FROM Name ) ) FROM Employee;
To suppress trailing pad characters from the character count for a data value, use the TRIM function on the argument to CHARACTER_LENGTH. For example:
SELECT CHARACTER_LENGTH( TRIM( TRAILING FROM Name ) ) FROM Employee;