The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
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:
|
#2
|
|||
|
|||
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) |
#3
|
||||
|
||||
Don't know if this is what you are looking for.
Quote:
See attachments for the results.. both queries returned same number of results. |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|