![]() |
|
Thread Tools |
#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.
username: username1, username2 userid: 479, 0 pagetext: %news.google.com% (username2 had userid 308 before i wrongly removed his account, keeping his posts)
So as a total mysql noob, i tried:
No members have liked this post.
|
#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) No members have liked this post.
|
#3
|
||||
|
||||
Don't know if this is what you are looking for.
See attachments for the results.. both queries returned same number of results. No members have liked this post.
|
![]() |
«
Previous Thread
|
Next Thread
»
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
|
|
New To Site? | Need Help? |
All times are GMT. The time now is 11:06.