Collections:
LTRIM() - Left-Trimming String
How to trim off space characters from a string at the left end using the LTRIM() function?
✍: FYIcenter.com
LTRIM(str) is a MySQL built-in function that
trims off space characters from a string at the left end.
For example:
SELECT LTRIM(' dba.FYIcenter.com');
-- +-------------------------------+
-- | LTRIM(' dba.FYIcenter.com') |
-- +-------------------------------+
-- | dba.FYIcenter.com |
-- +-------------------------------+
Reference information of the LTRIM() function:
LTRIM(str): modstr Returns the string str with leading space characters removed. Returns NULL if str is NULL. Arguments, return value and availability: str: Required. The string that will be left-trimmed from. modstr: Return value. The modified string after trimming. Available since MySQL 4.0.
Related MySQL functions:
⇒ MID() - Synonym for SUBSTRING()
⇐ LPAD() - Left-Padding String
2023-11-11, 1315🔥, 0💬
Popular Posts:
What Is the Difference Between GETDATE() and GETUTCDATE() in SQL Server Transact-SQL? The difference...
How To Start the Command-Line SQL*Plus in Oracle? If you Oracle server or client installed on your w...
How To Convert Numeric Expression Data Types using the CAST() Function in SQL Server Transact-SQL? I...
How To Look at the Current SQL*Plus System Settings in Oracle? If you want to see the current values...
How To Connect ASP Pages to Oracle Servers in Oracle? If you are running Windows IIS Web server and ...