网站首页  汉语字词  英语词汇  考试资料  写作素材  旧版资料

请输入您要查询的范文:

 

标题 Wordpress修改某篇文章ID(把ID为148的改成147)的SQL语句
范文
    4月更新过文章,文章ID停留在146,5月忙于考试,文章一篇都没写,结果6月前几天写文章的时候,ID从146直接跳到148,也不知道什么原因,我 的Wordpress是做过处理的ID是会自动连续的。打开数据库,把文章ID为148的改成147,完整的SQL语句如下:
    代码如下:
    update wp_posts set id = 147 where id = 148;
    update wp_term_relationships set object_id = 147 where object_id = 148;
    update wp_postmeta set post_id = 147 where post_id = 148;
    update wp_comments set comment_post_ID = 147 where comment_post_ID = 148;
随便看

 

在线学习网范文大全提供好词好句、学习总结、工作总结、演讲稿等写作素材及范文模板,是学习及工作的有利工具。

 

Copyright © 2002-2024 cuapp.net All Rights Reserved
更新时间:2025/5/29 4:48:27