zoukankan      html  css  js  c++  java
  • 织梦新建文章模型后 文章栏目转入新模型操作

    首先在织梦后台建立新内容模型 ,再用以下的MYSQL 语句 将以前的栏目文章转入新模型,

    例如以前的栏目为文章模型,ID 为 222, 新模型ID为 111  新模型附加表为 dede_addon20

    //转移文章到新的  模型附加表为dede_addon20

    INSERT INTO dede_addon20(aid,typeid,redirecturl,userip,body) SELECT aid,typeid,redirecturl,userip,body FROM dede_addonarticle where dede_addonarticle.typeid =222

    delete * from dede_addonarticle where typeid =222

    //更新跟平文章频道有关的表

    update dede_arctiny set channel=111  where typeid=222
    update dede_archives set channel=111  where typeid=222
    update dede_arctype set channeltype =111  where id =222

    转载自:http://blog.csdn.net/sun886/article/details/7992916

  • 相关阅读:
    springboot整合mybatis
    nginx
    mysql安装
    oracle安装静默
    网卡
    kafak部署
    在docker环境下安装activemq和rabbitmq
    docker安装
    【1213工作日志】ZYNQ的中断应用
    【CAN总线】CAN总线总结
  • 原文地址:https://www.cnblogs.com/cmdl/p/3693819.html
Copyright © 2011-2022 走看看