Linux Ask!

Linux Ask! is a Q & A web site specific for Linux related questions. Questions are collected, answered and audited by experienced Linux users.

Replace string in MySQL

Answer:

Replace a string with the UPDATE statement is easy in MySQL

E.g.

mysql> UPDATE table1 SET name = REPLACE (name, 'foo', 'bar');

  1. Replace a string using regular expressions in Perl
  2. Search and replace string in file using Perl
  3. How to replace a string in a file using Perl
  4. Prepare statement in MySQL
  5. How to combine insert & update in a single SQL statement

Leave a Reply

(required)

(required)

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>