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

  • 相关阅读:
    Next Permutation
    Generate Parentheses
    Unique Binary Search Trees II
    LDP LSP建立
    LDP标签分发和管理
    维护LDP会话
    LDP会话状态机
    LDP会话建立过程
    LDP发现机制
    LDP术语
  • 原文地址:https://www.cnblogs.com/cmdl/p/3693819.html
Copyright © 2011-2022 走看看