猪八戒APP
写个sql语句,批量替换数据库中的两个图标地址
成都
网站维护/安全
需求标题
写个sql语句,批量替换数据库中的两个图标地址
需求描述
在网站里面有几百个这样的文章:[url=http://***.51ttdy.com/index.php?m=content&c=index&a=show&catid=5326&id=460]http://***.51ttdy.com/index.php?m=content&c=index&a=show&catid=5326&id=460[/url]
用户名:looklife 密码:123456
需要将这个文章里面的图标(如附件图所示)替换成这两个:
[url=http://***.51ttdy.com/statics/js/umeditor122/php/upload/20151128/14486977291490.gif]http://***.51ttdy.com/statics/js/umeditor122/php/upload/20151128/14486977291490.gif[/url]
[url=http://***.51ttdy.com/statics/js/umeditor122/php/upload/20151128/14486977315609.gif]http://***.51ttdy.com/statics/js/umeditor122/php/upload/20151128/14486977315609.gif[/url]
需要注意的是,原文中的两个图标的地址是每天动态变化的,但是后面的参数不变,比如:
[url=http://video.etiantian.net/security/ab5af9d22d9d867fa0ced79067433125/5659133f/ett20/resource/css/images/zsdx02_120705.gif]http://video.etiantian.net/security/ab5af9d22d9d867fa0ced79067433125/5659133f/ett20/resource/css/images/zsdx02_120705.gif[/url]
中间的参数每天变化,所以,在我的网站原文里面,也是不同的。但是后面的参数是一致的。
[url=http://video.etiantian.net/security/366dace07981f86a8f379c7cc13e74eb/565a581e/ett20/resource/css/images/zsdx02_120705.gif]http://video.etiantian.net/security/366dace07981f86a8f379c7cc13e74eb/565a581e/ett20/resource/css/images/zsdx02_120705.gif[/url]
这个就是今天的有效地址。
预算金额
¥100元
允许参与人才数量
--
人才所在地
--
人才类型
--
工作反馈要求
无要求
期望完成日期
--
开票类型要求
无要求
类似需求