Find and replace entire mysql database

后端 未结 12 2169
走了就别回头了
走了就别回头了 2020-11-27 13:16

i would like to do a find and replace inside an entire database not just a table.

How can i alter the script below to work?

 update [table_name] set          


        
12条回答
  •  鱼传尺愫
    2020-11-27 13:48

    Simple Soltion

    UPDATE `table_name`
     SET `field_name` = replace(same_field_name, 'unwanted_text', 'wanted_text')
    

提交回复
热议问题