The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Need help with a query
I'm looking to write a script that will change all the IP addy's of a usergroup when run. I kinda have an idea how to do it but not 100% sure. This is what I've come up with.
UPDATE post SET ipaddress = '0.0.0.0' WHERE userid in ( SELECT post.userid FROM [user] INNER JOIN post ON user.UserID = post.userid WHERE groupid = 5 ) Would this work? |
#2
|
||||
|
||||
Quote:
I also don't understand the brackets around user |
#3
|
|||
|
|||
And in the subquery select it would be user.userid, not post.userid. Out of my had it is also usergroupid and not groupid.
|
#4
|
|||
|
|||
Thanks for the help. The brackets were because I was running the query in Access to test.
|
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|