Skip to main content
deleted 1 characters in body; edited title
Source Link
RolandoMySQLDBA
  • 184.4k
  • 33
  • 323
  • 531

Query to find and replace text inin all tables and fields of a myslqmysql db?

I need to run a query to find and replace some text in all tables of a mysql database.

I found this query, but it only looks for the text in the tbl_name table and just in the column field.

update tbl_name set column=REPLACE(column, 'fuschia', 'fuchsia'); 

I need it to lookslook in all tables and all fields: (everywhere in the database)

Query to find and replace text in all tables and fields of a myslq db?

I need to run a query to find and replace some text in all tables of a mysql database.

I found this query, but it only looks for the text in the tbl_name table and just in the column field.

update tbl_name set column=REPLACE(column, 'fuschia', 'fuchsia'); 

I need it to looks in all tables and all fields: (everywhere in the database)

Query to find and replace text in all tables and fields of a mysql db

I need to run a query to find and replace some text in all tables of a mysql database.

I found this query, but it only looks for the text in the tbl_name table and just in the column field.

update tbl_name set column=REPLACE(column, 'fuschia', 'fuchsia'); 

I need it to look in all tables and all fields: (everywhere in the database)

Source Link
chefnelone
  • 185
  • 1
  • 1
  • 7

Query to find and replace text in all tables and fields of a myslq db?

I need to run a query to find and replace some text in all tables of a mysql database.

I found this query, but it only looks for the text in the tbl_name table and just in the column field.

update tbl_name set column=REPLACE(column, 'fuschia', 'fuchsia'); 

I need it to looks in all tables and all fields: (everywhere in the database)