Friday, November 14, 2014

Remove the last character in a string in T-SQL?

SELECT SUBSTRING( 'string' , 1 , LEN( 'string' ) - 1 )
--or
SELECT LEFT( 'string' , LEN( 'string' ) - 1 )