![]() |
Help mysql query to change post/thread owner
Hello,
i have two users who posted topics where they mention phrasse: news.google.com my aim is either delete such posts (but it seems to be too complicated as you can see there) or to change these topics/posts owner/user using mysql query. Quote:
username: username1, username2 userid: 479, 0 pagetext: %news.google.com% (username2 had userid 308 before i wrongly removed his account, keeping his posts) Quote:
So as a total mysql noob, i tried: Quote:
|
LIKE is used to check if a column contains a string, but your usage in the UPDATE query is wrong and I don't think that's what you really want to use anyway.
To match a value, you use =. WHERE postusername = 'username2' AND postuserid = 308 AND replycount = 0 AND notes = 'Imported thread'. Just keep in mind that you also need to update the userid in the post table. (First post of the thread) |
1 Attachment(s)
Don't know if this is what you are looking for.
Quote:
See attachments for the results.. both queries returned same number of results. https://vborg.vbsupport.ru/attachmen...1&d=1511626364 https://vborg.vbsupport.ru/attachmen...1&d=1511626364 |
All times are GMT. The time now is 09:12 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|