最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

mssql - SQL copy post_title to post_content

programmeradmin3浏览0评论

Anyone know the SQL to copy post_title to post_content where post_content is empty for all and only posts in wordpress

Thanks for any pointers in advance Richard

Anyone know the SQL to copy post_title to post_content where post_content is empty for all and only posts in wordpress

Thanks for any pointers in advance Richard

Share Improve this question asked May 13, 2019 at 12:52 frank roburoughfrank roburough 32 bronze badges
Add a comment  | 

1 Answer 1

Reset to default 0

This isn't really about WordPress, however you want:

UPDATE wp_posts SET post_content = post_title WHERE post_content= "" AND post_type = 'post';

发布评论

评论列表(0)

  1. 暂无评论