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, 2045🔥, 0💬
Popular Posts:
How To Divide Query Output into Multiple Groups with the GROUP BY Clause in SQL Server? Sometimes, y...
How To Download Oracle Database 10g XE in Oracle? If you want to download a copy of Oracle Database ...
How To Locate and Take Substrings with CHARINDEX() and SUBSTRING() Functions in SQL Server Transact-...
What Is Transport Network Substrate (TNS) in Oracle? TNS, Transport Network Substrate, is a foundati...
How To Convert Character Strings into Numeric Values in SQL Server Transact-SQL? Sometimes you need ...