帝国cms批量修改字段内容

  • A+
所属分类:帝国cms技巧

内容摘要

update phome_ecms_download set titleurl=replace(titleurl,'http://www.daixiao360.cn','http://127.0.0.1');update phome_ecms_download set titlepic=

文章正文

update phome_ecms_download set titleurl=replace(titleurl,'http://www.daixiao360.cn','http://127.0.0.1');

update phome_ecms_download set titlepic=replace(titlepic,'http://www.daixiao360.cn','http://127.0.0.1');

update phome_ecms_download set username=REPLACE(username,'admin','发布者') WHERE id BETWEEN 1 AND 100; 指定批量修改ID=1-100;

update phome_ecms_download set userid=REPLACE(userid,'1','55'),username=REPLACE(username,'admin','改变'),ismember=REPLACE(ismember,'0','1') WHERE id BETWEEN 1 AND 100; 一次批量修改三个字段

代码注释

  • 我的微信
  • 这是我的微信扫一扫
  • weinxin
  • 我的微信公众号
  • 我的微信公众号扫一扫
  • weinxin

发表评论

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen: