ID EN
String Functions and Operators

LTRIM(str)

MySQL 8.4

Returns the string str with leading space characters removed. Returns NULL if str is NULL.

Syntax

MYSQL
SELECT LTRIM('  barbar');
'barbar'

Examples

Example

This function is multibyte safe.

MYSQL
SELECT LTRIM('  barbar');
'barbar'