admin管理员组文章数量:1130349
I have a problem with my blog. The thing is this, all the posts have a thumbnail in this address: wpbv_postmeta-->meta_key-->thumb
And several (A LOT) of posts don't work, because I have made a script that takes videos from a website and publishes in mine.
So, I need to find (I have search in google and here but couldn't find anything) a way to do this:
SELECT * FROM wpbv_postmeta WHERE meta_key='thumb'
And with the results I have to find which images doesn't exist anymore (they are alocated in a different website).
Once I have located all the images that doesn't exist delete posts where that images are, with the help of post_id
Obviously I don't want that you do all the work, but I have no idea how to do it, if you can explain it to me, or give me links to search will be awesome.
I have a problem with my blog. The thing is this, all the posts have a thumbnail in this address: wpbv_postmeta-->meta_key-->thumb
And several (A LOT) of posts don't work, because I have made a script that takes videos from a website and publishes in mine.
So, I need to find (I have search in google and here but couldn't find anything) a way to do this:
SELECT * FROM wpbv_postmeta WHERE meta_key='thumb'
And with the results I have to find which images doesn't exist anymore (they are alocated in a different website).
Once I have located all the images that doesn't exist delete posts where that images are, with the help of post_id
Obviously I don't want that you do all the work, but I have no idea how to do it, if you can explain it to me, or give me links to search will be awesome.
本文标签: mysqlHow to delete posts that does not have a thumbnail
版权声明:本文标题:mysql - How to delete posts that does not have a thumbnail? 内容由热心网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:https://it.en369.cn/questions/1749172017a2327171.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。


发表评论