Discuz教程站长版-分享本地附件转远程附件和远程附件转本地附件的SQL代码

查看 25|回复 0
作者:yanyongliang   
本地转远程
update pre_forum_attachment_0 set remote = '1' ;
update pre_forum_attachment_1 set remote = '1' ;
update pre_forum_attachment_2 set remote = '1' ;
update pre_forum_attachment_3 set remote = '1' ;
update pre_forum_attachment_4 set remote = '1' ;
update pre_forum_attachment_5 set remote = '1' ;
update pre_forum_attachment_6 set remote = '1' ;
update pre_forum_attachment_7 set remote = '1' ;
update pre_forum_attachment_8 set remote = '1' ;
update pre_forum_attachment_9 set remote = '1' ;
远程转本地
update pre_forum_attachment_0 set remote = '0' ;
update pre_forum_attachment_1 set remote = '0' ;
update pre_forum_attachment_2 set remote = '0' ;
update pre_forum_attachment_3 set remote = '0' ;
update pre_forum_attachment_4 set remote = '0' ;
update pre_forum_attachment_5 set remote = '0' ;
update pre_forum_attachment_6 set remote = '0' ;
update pre_forum_attachment_7 set remote = '0' ;
update pre_forum_attachment_8 set remote = '0' ;
update pre_forum_attachment_9 set remote = '0' ;

附件, 代码

您需要登录后才可以回帖 登录 | 立即注册

返回顶部