Collections:
RTRIM() - Right-Trimming String
How to trim off space characters from a string at the right end using the RTRIM() function?
✍: FYIcenter.com
RTRIM(str) is a MySQL built-in function that
trims off space characters from a string at the right end.
For example:
SET @str = 'dba.FYIcenter.com '; SELECT RTRIM(@str); -- +-------------------+ -- | RTRIM(@str) | -- +-------------------+ -- | dba.FYIcenter.com | -- +-------------------+
Reference information of the RTRIM() function:
RTRIM(str): modstr Returns the string str with trailing space characters removed. Returns NULL if str is NULL. Arguments, return value and availability: str: Required. The string that will be right-trimmed from. modstr: Return value. The modified string after trimming. Available since MySQL 4.0.
Related MySQL functions:
⇒ SOUNDEX() - Soundex Encoding
⇐ RPAD() - Right-Padding String
2023-11-11, 1934🔥, 0💬
Popular Posts:
How Run SQL*Plus Commands That Are Stored in a Local File in Oracle? If you have a group of commands...
How To Start the Command-Line SQL*Plus in Oracle? If you Oracle server or client installed on your w...
How to execute statements in loops in SQL Server Transact-SQL? How to use WHILE ... loops? You can u...
Where to find answers to frequently asked questions on Downloading and Installing SQL Server 2005 Ex...
How To Replace Given Values with NULL using NULLIF() in SQL Server Transact-SQL? Sometime you want t...