LTRIM(str)
Returns the string str
with leading space characters removed.
Returns NULL if given a NULL argument. If the result is empty, returns either an empty string, or, from MariaDB 10.3.6 with SQL_MODE=Oracle, NULL.
The Oracle mode version of the function can be accessed outside of Oracle mode by using LTRIM_ORACLE
as the function name.
SELECT QUOTE(LTRIM(' MariaDB ')); +-------------------------------+ | QUOTE(LTRIM(' MariaDB ')) | +-------------------------------+ | 'MariaDB ' | +-------------------------------+
Oracle mode version from MariaDB 10.3.6:
SELECT LTRIM(''),LTRIM_ORACLE(''); +-----------+------------------+ | LTRIM('') | LTRIM_ORACLE('') | +-----------+------------------+ | | NULL | +-----------+------------------+
© 2019 MariaDB
Licensed under the Creative Commons Attribution 3.0 Unported License and the GNU Free Documentation License.
https://mariadb.com/kb/en/ltrim/