RTRIM()
Description
This function RTRIM() returns the string with trailing space characters removed.
Syntax
> RTRIM(str)
Arguments
Arguments | Description |
---|---|
str | Required. CHAR and VARCHAR both are supported. |
Examples
> drop table if exists t1;
> create table t1(a char(8),b varchar(10));
> insert into t1 values('matrix ','matrixone ');
> select rtrim(a),rtrim(b) from t1;
+----------+-----------+
| rtrim(a) | rtrim(b) |
+----------+-----------+
| matrix | matrixone |
+----------+-----------+
Constraints
Currently, MatrixOne doesn’t support select function() without from tables.