Mysql
 sql >> Database >  >> RDS >> Mysql

Sostituire la stringa MySQL

UPDATE your_table
SET your_field = REPLACE(your_field, 'articles/updates/', 'articles/news/')
WHERE your_field LIKE '%articles/updates/%'

Ora righe che erano come

http://www.example.com/articles/updates/43

sarà

http://www.example.com/articles/news/43

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