coool_sweet
SSCommitted
Points: 1892
More actions
July 13, 2017 at 3:54 pm
#331804
hi
I have string like this david,kam
I need to remove , and rever the word like kam david in tsql
please help
DesNorton
SSC-Insane
Points: 24386
July 14, 2017 at 12:14 am
#1950872
With not much to go on, this should get you startedDECLARE @String VARCHAR(20) = 'david,kam';
DECLARE @String VARCHAR(20) = 'david,kam';
SELECT RIGHT(@String, LEN(@String) - CHARINDEX(',', @String)) + ' ' + LEFT(@String, CHARINDEX(',', @string) -1);
July 15, 2017 at 6:27 am
#1951034
thank you.it works
Viewing 3 posts - 1 through 2 (of 2 total)
You must be logged in to reply to this topic. Login to reply