mysql批量替换zencart数据中的反斜杠\

update products_description set products_description=replace(products_description, "\\'","'");
update products_description set products_name=replace(products_name, "\\'","'");
update categories_description set categories_name=replace(categories_name, "\\'","'");
update meta_tags_categories_description set metatags_title=replace(metatags_title,  "\\'","'");
update meta_tags_categories_description set metatags_keywords=replace(metatags_keywords,  "\\'","'");
update meta_tags_categories_description set metatags_description=replace(metatags_description,  "\\'","'");
update meta_tags_products_description set metatags_title=replace(metatags_title,   "\\'","'");
update meta_tags_products_description set metatags_keywords=replace(metatags_keywords,   "\\'","'");
update meta_tags_products_description set metatags_description=replace(metatags_description,   "\\'","'");

update products_description set products_description=replace(products_description, '\\"','"');
update products_description set products_name=replace(products_name, '\\"','"');
update categories_description set categories_name=replace(categories_name, '\\"','"');
update meta_tags_categories_description set metatags_title=replace(metatags_title,  '\\"','"');
update meta_tags_categories_description set metatags_keywords=replace(metatags_keywords,  '\\"','"');
update meta_tags_categories_description set metatags_description=replace(metatags_description,  '\\"','"');
update meta_tags_products_description set metatags_title=replace(metatags_title,   '\\"','"');
update meta_tags_products_description set metatags_keywords=replace(metatags_keywords,   '\\"','"');
update meta_tags_products_description set metatags_description=replace(metatags_description,   '\\"','"');

 

posted @ 2014-09-01 16:33  小鱼阁工作室  阅读(306)  评论(0编辑  收藏  举报
Copyright © 小鱼阁工作室 版权所有 -zencart外贸建站,织梦企业建站,ecshop商城,二次开发,产品采集,模板修改!