LTRIM (SQL Server Compact)
Returns a character expression after removing leading blanks.
Syntax
LTRIM (character_expression )
Arguments
- character_expression
An expression of character or binary data. The character_expression argument must be of a data type that is implicitly convertible to nvarcharorntext.
Return Value
nvarchar or ntext
Example
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');