Mega Code Archive

 
Categories / MSSQL / String Functions
 

RIGHT(@RIGHT_STRING,10)

1> -- This produces a result of ten spaces, because the last 10 characters are  space filled. 2> 3> DECLARE @RIGHT_STRING varchar(100) 4> SET @RIGHT_STRING = "www.rntsoft.com" 5> 6> SELECT RIGHT(@RIGHT_STRING,10) 7> GO ---------- rntsoft.com (1 rows affected) 1>