帝国CMS批量修改字段内容采用sql语句替换方法

COS、CDN
  1. 执行SQL语句
    • 路径:系统 - 系统设置 - 数据备份与恢复 - 执行SQL语句
    • 示例代码:
      update www_moban5_cn_ecms_news set titleurl=replace(titleurl, 'http://www.moban5.cn', 'http://img.moban5.net'); update www_moban5_cn_ecms_news set titlepic=replace(titlepic, 'http://www.moban5.cn', 'http://img.moban5.net'); update www_moban5_cn_ecms_news set username=REPLACE(username, 'admin', '发布者') WHERE id BETWEEN 1 AND 100; update www_moban5_cn_ecms_news set userid=REPLACE(userid, '1', '55'), username=REPLACE(username, 'admin', '改变'), ismember=REPLACE(ismember, '0', '1') WHERE id BETWEEN 1 AND 100;

       

COS、CDN
热门