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/%' 

http://www.electrictoolbox.com/mysql-find-replace-text/


Comments

Popular posts from this blog

c# - how to write client side events functions for the combobox items -

exception - Python, pyPdf OCR error: pyPdf.utils.PdfReadError: EOF marker not found -