How do I remove the last character in a string in T-SQL?
I.E. 'TEST STRING'
to return:
'TEST STRIN'
thanks Dave
How do I remove the last character in a string in T-SQL?
I.E. 'TEST STRING'
to return:
'TEST STRIN'
thanks Dave
e.g.
DECLARE @String VARCHAR(100)
SET @String = 'TEST STRING'
-- Chop off the end character
SET @String = LEFT(@String, LEN(@String) - 1)
SELECT @String