Curriculum
Course: MYSQL
Login

Curriculum

MYSQL

MySQL References

0/140
Text lesson

LTRIM

Example

Trim leading spaces from a string.

SELECT LTRIM(”     SQL Tutorial”AS LeftTrimmedString;  

Definition and Usage

The LTRIM() function eliminates leading spaces from a string.

Syntax

LTRIM(string)

Parameter Values

Parameter

Description

string

Input required: The string from which leading spaces will be removed.

Technical Details

Works in: From MySQL 4.0