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, 1868🔥, 0💬
Popular Posts:
How To Convert Binary Strings into Hexadecimal Character Strings in SQL Server? When a query returns...
How To Format DATETIME Values to Strings with the CONVERT() Function in SQL Server Transact-SQL? SQL...
Where to find answers to frequently asked questions on PHP Connections and Query Execution for MySQL...
How To Enter Unicode Character String Literals in SQL Server Transact-SQL? Unicode characters are mu...
How To Round a Numeric Value To a Specific Precision in SQL Server Transact-SQL? Sometimes you need ...