Curriculum
Course: MYSQL
Login

Curriculum

MYSQL

MySQL References

0/140
Text lesson

RTRIM

Example

Remove trailing spaces from a string:

SELECT RTRIM(“SQL Tutorial     “AS RightTrimmedString;  

Definition and Usage

The RTRIM() function eliminates trailing spaces from a string.

Syntax

RTRIM(string)

Parameter Values

Parameter

Description

string

Input required: The string from which trailing spaces will be removed.

Technical Details

Works in: From MySQL 4.0