Export (0) Print
Expand All
Expand Minimize
1 out of 2 rated this helpful - Rate this topic

LTRIM (SQL Server Compact Edition)

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.

CREATE TABLE MyCustomers (CustID INTEGER IDENTITY (100,1) PRIMARY KEY, CompanyName nvarchar (50))
INSERT INTO MyCustomers (CompanyName) VALUES ('    A. Datum Corporation')
SELECT CustID, LTRIM(CompanyName)
FROM MyCustomers
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.