Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SQL

mssql replace first occurrence

SELECT STUFF(col, CHARINDEX('substring', col), LEN('substring'), 'replacement')
FROM #temp
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #mssql #replace #occurrence
ADD COMMENT
Topic
Name
2+5 =