我如何查询PhpMyAdmin删除评论者添加他们网站的WordPress评论?
即使用url的人的评论:Name, Email, Website。
我想删除有网站数据的评论。
尝试以下查询,但在付诸行动之前,请先备份数据库。
DELETE FROM wp_comments
WHERE comment_author_url like '%http://%';
wp_comments
表中包含comment_author
、comment_author_email
、comment_author_url
、comment_content
等字段。
注意,在执行任何数据库操作之前,应该备份数据库,因为如果使用不当,这些命令将删除博客中的所有注释。
如果你想删除作者在comment_author_url字段中放置网站的任何评论(许多人这样做是为了标识他们的"主"博客,),你可以这样做:
delete from wp_comments where comment_author_url like '%http://%';
如果你想删除作者在内容中放置网站的评论(这是评论垃圾邮件的常见做法),你可以执行
delete from wp_comments where comment_content like '%http://%';
编辑你的问题,以更具体地说明你想要做什么,如果这还不能回答你的问题。