Curriculum
Course: SQL
Login

Curriculum

SQL

SQL References

0/80

MySQL Functions

0/139

SQL Server Functions

0/84

SQL Quick Ref

0/1
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