Z-blogPHP uses the sql command to delete articles published by specified users in batches

When we want to delete an article published by a specified user in the background of the website, we often try to delete this user, but after deleting this user, the article published by the user will still exist.

So how to delete articles published by specified users in batches?

we canphpMyAdmin Control PanelSQL commandDelete.

The sql command is as follows:

DELETE FROM zbp_post WHERE log_AuthorID = (SELECT mem_ID FROM zbp_member WHERE mem_Name = '用户名称');

The usage method is as shown in the following figure:

image.png

Just change the "user name" to your actual user name.

t like0

Link to this article:https://en.finchui.com/zblog-course/84.html

netizens commented

guess you like

hot commodity
popular articles
hot Tags
related tags
FinchUI Store Edition Hong Kong Special Area

share

copy Link

Xinglan Studioadd friends

Working hours: 9:00-22:00
Saturday and Sunday: 14:00-22:00
wechat
Scan the code to add customer service WeChat