RTRIM()
Description
This function RTRIM() returns the string with trailing space characters removed.
Syntax
1. > RTRIM(str)
Arguments
| Arguments | Description |
|---|---|
| str | Required. CHAR and VARCHAR both are supported. |
Examples
1. > drop table if exists t1;
2. > create table t1(a char(8),b varchar(10));
3. > insert into t1 values('matrix ','matrixone ');
4. > select rtrim(a),rtrim(b) from t1;
6. +----------+-----------+
7. | rtrim(a) | rtrim(b) |
8. +----------+-----------+
9. | matrix | matrixone |
10. +----------+-----------+
