This MariaDB tutorial explains how to use the MariaDB LTRIM function with syntax and examples.
The MariaDB LTRIM function removes all space characters from the left-hand side of a string.
The syntax for the LTRIM function in MariaDB is:
LTRIM( string )
The string to trim the space characters from the left-hand side.
The LTRIM function can be used in the following versions of MariaDB:
Let's look at some MariaDB LTRIM function examples and explore how to use the LTRIM function in MariaDB.
For example:
SELECT LTRIM(' AODBA.com');
Output: 'AODBA.com'
SELECT LTRIM(' AODBA.com knows MariaDB!');
Output: 'AODBA.com knows MariaDB!'