[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 416
  • Last Modified:

Need Mysl query for find and replace a field

Hello

I have little experience in making modifications in mysql.  But thanks to Experts-Exchange I am able to make little changes, via phpmyadmin.

I have a database named "foobar" and one of the tables in it is named "foobar_menu",  And in that table is a field named "params"

I would like the query to search the params field for (include all the quotes) :

"show_page_heading":1,"

And replace it with

"show_page_heading":0,"

That's "all" I want it to do.  An exact match and exact replace

phpMyAdmin - 2.11.11.3
MySQL client version: 5.0.95
Server version: 5.0.95-log

And, yes I have a backup of the database.

Thanks!

Rowby
0
Rowby Goren
Asked:
Rowby Goren
1 Solution
 
GaryCommented:
Running directly in PHPMyAdmin?

UPDATE foobar_menu set params=REPLACE(params,'"show_page_heading":1,"', '"show_page_heading":0,"' )

Open in new window

0
 
Rowby GorenAuthor Commented:
That did it!

Thanks!

Rowby
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now