tsql - How can I remove certain chars before the space in T-SQL? -
i'm trying without luck come method pass
bruno miguel alexandre b. miguel alexandre
and
bruno alexandre b. alexandre
just in sql can make part of big query in store procedure
can provide me help? function guys might have?
much appreciated.
take 1st character + space. 8000 avoid len calls otherwise
left(myvalue, 1) + '.' + substring(myvalue, charindex(' ', myvalue), 8000)
Comments
Post a Comment