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, 1072🔥, 0💬
Popular Posts:
How To Fix the INSERT Command Denied Error in MySQL? The reason for getting the "1142: INSERT comman...
What Is a Parameter File in Oracle? A parameter file is a file that contains a list of initializatio...
What Is an Oracle Instance in Oracle? Every running Oracle database is associated with an Oracle ins...
What Privilege Is Needed for a User to Delete Rows from Tables in Another Schema in Oracle? For a us...
How To Convert Numeric Expression Data Types using the CAST() Function in SQL Server Transact-SQL? I...