Al Programming
Free source code programming in C#, VB.Net, Java, SQL
Search This Blog
Wednesday, December 18, 2013
RTRIM SQL Server Example
SQL Server
>
Built-in Functions
>
RTRIM
RTRIM
returns a sting after truncate trailing blanks.
Example:
DECLARE
@str
varchar
(
60
);
SET
@str
=
'six spaces after
'
;
SELECT
@str
+
'/'
;
SELECT
RTRIM
(
@str
)
+
'/'
;
results:
six spaces after /
six spaces after/
Newer Post
Older Post
Home