select LTRIM(RTRIM(' SQL Server ')) : RTRIM « String Functions « SQL Server / T-SQL Tutorial

Home
SQL Server / T-SQL Tutorial
1.Query
2.Insert Delete Update
3.Table
4.Table Join
5.Data Types
6.Set Operations
7.Constraints
8.Subquery
9.Aggregate Functions
10.Date Functions
11.Math Functions
12.String Functions
13.Data Convert Functions
14.Analytical Functions
15.Sequence Indentity
16.View
17.Index
18.Cursor
19.Database
20.Transact SQL
21.Procedure Function
22.Trigger
23.Transaction
24.XML
25.System Functions
26.System Settings
27.System Tables Views
28.User Role
29.CLR
SQL Server / T-SQL Tutorial » String Functions » RTRIM 
12.17.4.select LTRIM(RTRIM(' SQL Server '))
3select LTRIM(RTRIM(' SQL Server '))
4> GO

------------
SQL Server

(rows affected)
1>
12.17.RTRIM
12.17.1.RTRIM will remove trailing spaces from a string.
12.17.2.select RTRIM(' SQL Server ')
12.17.3.Removing Trailing Blanks
12.17.4.select LTRIM(RTRIM(' SQL Server '))
12.17.5.RTRIM a column
12.17.6.CONVERT(varchar(20), RTRIM(au_lname) + ', ' + RTRIM(au_fname)
java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.