mysql - Find and replace text between ## -
i have lot of records in table p_suppliers
www.loohuis.nl#http://www.loohuis.nl#
which want have
www.loohuis.nl
why query not working?
update p_suppliers set site = replace(site, '#%#','') ;
try way
declare @opentag varchar(10) set @opentag = '#' update p_suppliers set site= stuff(site, charindex(@opentag, site,1) + len(@opentag), charindex('#',site,1)-(charindex(@opentag, site,1) + len(@opentag)), '')
Comments
Post a Comment