Expand Minimize
0 out of 1 rated this helpful - Rate this topic

LTRIM (SQL Server Compact)

Returns a character expression after removing leading blanks.


LTRIM ( character_expression ) 
character_expression

An expression of character or binary data. The character_expression argument must be of a data type that is implicitly convertible to nvarchar or ntext.

nvarchar or ntext

The following example removes leading blanks from the names of customers listed in the MyCustomers table.

INSERT INTO Customers
                         ([Customer ID], [Company Name])
VALUES        ('TEMP', '    A. Datum Corporation');

SELECT        [Customer ID], LTRIM([Company Name]) AS Expr1
FROM            Customers
WHERE        ([Customer ID] = 'TEMP');
Did you find this helpful?
(1500 characters remaining)
© 2013 Microsoft. All rights reserved.