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, 1599🔥, 0💬
Popular Posts:
What Is Transport Network Substrate (TNS) in Oracle? TNS, Transport Network Substrate, is a foundati...
How To List All Login Names on the Server in SQL Server? If you want to see a list of all login name...
Where to find tutorials to answer some frequently asked questions on Microsoft SQL Server Transact-S...
How Run SQL*Plus Commands That Are Stored in a Local File in Oracle? If you have a group of commands...
How to run Queries with SQL Server Management Studio Express in SQL Server? 1. Launch and connect SQ...