Code Stop Logo
  • Home

Replace strings in multiple fields with MySql / MariaDB

  • Home
  • Articles
Tags
MySql / MariaDB

Replace strings in multiple fields with MySql / MariaDB

MySql / MariaDB

The following example will replace "Foo" with "bar" in the title field for every record in articles:

update articles SET title = replace(title, 'Foo', 'bar');

 

Share this Post

Author

Avatar for mike knebel

mike knebel

Software Developer - Websites, Mobile Apps. Owner of Logistics Logic, 307WEB and 405Software
@mknebel   MikeKnebel

Related Info
mysql / mariadb 
Porto Website Template

© Copyright 2009-2025. CodeStop.com. All Rights Reserved.