MySQL string replace -
i have column containing urls (id, url):
http://www.example.com/articles/updates/43 http://www.example.com/articles/updates/866 http://www.example.com/articles/updates/323 http://www.example.com/articles/updates/seo-url http://www.example.com/articles/updates/4?something=test
i'd change word "updates" "news". possible script?
update your_table set your_field = replace(your_field, 'articles/updates/', 'articles/news/') your_field '%articles/updates/%'
Comments
Post a Comment