Find & Replace Data within phpMyAdmin

Posted on 2012-08-24
Last Modified: 2012-08-24
Hello ...

I'm trying to find a replace forward slashes with back slashes within a specific field  on a mysql table.

The SQL i'm using is as follows within phpMyadmin

UPDATE images_T SET image_path = replace(image_path, "\", "/");

Open in new window

But when I try this I receive the following message

ERROR: Unclosed quote @ 70
STR: "
SQL: UPDATE xcart_images_T_bck SET image_path = replace(image_path, "\", "/");

Any Ideas?

Many Thanks
Question by:Shafiq Khan
    LVL 25

    Accepted Solution

    It may be thinking you are escaping the quote ... try
    UPDATE images_T SET image_path = replace(image_path, "\\", "/");
    LVL 1

    Author Closing Comment

    by:Shafiq Khan
    Great.. Many Thanks.

    That did the trick :-)

    Featured Post

    Threat Intelligence Starter Resources

    Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

    Join & Write a Comment

    Loading csv or delimited data files to MySQL database is a very common task frequently questioned about and almost every time LOAD DATA INFILE comes to the rescue. Here we will try to understand some of the very common scenarios for loading data …
    I use MySQL for many of my development projects in a Windows environment. To manage my databases (and perform queries) for years I used a tool called MySQL administrator.  This tool has since been replaced by MySQL Workbench. So I decided to m…
    Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
    Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

    729 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    14 Experts available now in Live!

    Get 1:1 Help Now