Monday, October 22, 2012

SQL - Return Right of String from Specified Char


DECLARE @somestring as nvarchar(50) = 'test,value';


select right(@somestring,LEN(@somestring)-CHARINDEX(',',@somestring))

No comments:

Post a Comment