I
I
Ivan Damaskin2014-07-17 14:59:32
MySQL
Ivan Damaskin, 2014-07-17 14:59:32

How to find and replace text in mysql database?

Hello. The company's phone number has changed due to moving to a new office.
The site has a lot of materials containing the old phone number. Finding all the materials and editing the phone number there will take a lot of time.
Please tell me how to do a search and replace in phpmyadmin?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexey Pavlov, 2014-07-17
@lexxpavlov

UPDATE articles SET text = REPLACE(text, '8-927-123-45-67', '8-927-123-76-54') WHERE text LIKE '%8-927-123-45-67%'

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question