Hello, I am not a guru of databases, do most of the things through PHP, like data manipulation as well, even if it is an internal task. However, PHP is not being very useful in this case. I have a table with about 0.4 million records in it and it has like 16 columns, everything else works fine but I populated this table from a text file and that text file had most of the values in each column in double quotes such as
"United States of America"
"London"
etc.
I want to remove those double quotes where ever I can find them through a single query or SQL script. I have tried PHP and its str_replace method but apparently the records are far too huge for it to continue applying this function on each record and then run 2 queries for each value. Can there be any SQL solution for it?
The database is MySQL, engine can be switched from MyISAM to InnoDB. I have seen this solution here: http://stackoverflow.com/questions/834912/sql-search-for-a-string-in-every-varchar-column-in-a-database but not sure if it will work for me. Thanks.