Replacing symbols in mysql table via phpmyadmin

Note on replacing symbols in the database table. Go to the execution of the request and drive in the following

UPDATE table SET column = REPLACE(column, 'old word', 'new word');

For example, we need to replace the ID with a class in a specific table. Our request will be something like this

UPDATE `body` SET `body_value` = REPLACE(`body_value`, 'id="but"', 'class="buttons"');

Простий текст

  • Не дозволено жодних HTML теґів.
  • Рядки й абзаци переносяться автоматично.
  • Адреси вебсторінок та адреси електронної пошти автоматично перетворюються у посилання.
Код мови коментаря.