Notice: session_start(): A session had already been started - ignoring in /home/u614325693/domains/onedoubt.com/public_html/post.php on line 3
LTRIM - ONEDOUBT.COM

MySQL LTRIM() Function

Example

Remove leading spaces from a string:

SELECT LTRIM("     SQL Tutorial"AS LeftTrimmedString;

 


Definition and Usage

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

Syntax

LTRIM(string)

Parameter Values

Parameter

Description

string

Required. The string to remove leading spaces from

Technical Details

Works in:

From MySQL 4.0

 


Login
ADS CODE